Googletest export
Code style cleanup in docs PiperOrigin-RevId: 364907938
This commit is contained in:
committed by
Dino Radaković
parent
5142ccd2d4
commit
6dabd081e9
@@ -268,7 +268,7 @@ class FileInterface {
|
||||
class File : public FileInterface {
|
||||
public:
|
||||
...
|
||||
virtual bool Open(const char* path, const char* mode) {
|
||||
bool Open(const char* path, const char* mode) override {
|
||||
return OpenFile(path, mode);
|
||||
}
|
||||
};
|
||||
@@ -512,9 +512,9 @@ The trick is to redispatch the method in the mock class:
|
||||
class ScopedMockLog : public LogSink {
|
||||
public:
|
||||
...
|
||||
virtual void send(LogSeverity severity, const char* full_filename,
|
||||
void send(LogSeverity severity, const char* full_filename,
|
||||
const char* base_filename, int line, const tm* tm_time,
|
||||
const char* message, size_t message_len) {
|
||||
const char* message, size_t message_len) override {
|
||||
// We are only interested in the log severity, full file name, and
|
||||
// log message.
|
||||
Log(severity, full_filename, std::string(message, message_len));
|
||||
|
||||
Reference in New Issue
Block a user