Go to the documentation of this file.
34 #ifndef GOOGLE_PROTOBUF_GOOGLETEST_H__
35 #define GOOGLE_PROTOBUF_GOOGLETEST_H__
39 #include <google/protobuf/stubs/common.h>
40 #include <google/protobuf/stubs/logging.h>
41 #include <gmock/gmock.h>
43 #if !PROTOBUF_USE_EXCEPTIONS && defined(GTEST_HAS_DEATH_TEST) && \
45 #define PROTOBUF_HAS_DEATH_TEST
69 #undef ERROR // defend against promiscuous windows.h
90 std::map<LogLevel, std::vector<std::string> >
messages_;
104 #endif // GOOGLE_PROTOBUF_GOOGLETEST_H__
string GetCapturedTestStdout()
virtual ~ScopedMemoryLog()
static ScopedMemoryLog * active_log_
LogHandler * old_handler_
string GetCapturedTestStderr()
static void HandleLog(LogLevel level, const char *filename, int line, const string &message)
const std::vector< string > & GetMessages(LogLevel error)
static const LogLevel WARNING
std::map< LogLevel, std::vector< std::string > > messages_
static const LogLevel ERROR
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ScopedMemoryLog)
void LogHandler(LogLevel level, const char *filename, int line, const std::string &message)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:43