#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "absl/base/attributes.h"
#include "absl/base/log_severity.h"
#include "absl/log/log.h"
#include "absl/log/scoped_mock_log.h"
namespace {
_;
Eq;
namespace not_absl {
class Dummy { … };
const Dummy INFO, WARNING, ERROR, FATAL, NUM_SEVERITIES;
class string { … };
class vector { … };
class LogMessage { … };
class LogMessageFatal { … };
class LogMessageQuietlyFatal { … };
class LogMessageVoidify { … };
class LogSink { … };
class NullStream { … };
class NullStreamFatal { … };
}
usingnamespacenot_absl;
TEST(LogHygieneTest, WorksForQualifiedSeverity) { … }
TEST(LogHygieneTest, WorksWithAlternativeINFOSymbol) { … }
TEST(LogHygieneTest, WorksWithAlternativeWARNINGSymbol) { … }
TEST(LogHygieneTest, WorksWithAlternativeERRORSymbol) { … }
TEST(LogHygieneTest, WorksWithAlternativeLEVELSymbol) { … }
#define INFO …
#ifdef NDEBUG
constexpr bool IsOptimized = false;
#else
constexpr bool IsOptimized = …;
#endif
TEST(LogHygieneTest, WorksWithINFODefined) { … }
#undef INFO
#define _INFO …
TEST(LogHygieneTest, WorksWithUnderscoreINFODefined) { … }
#undef _INFO
TEST(LogHygieneTest, ExpressionEvaluationInLEVELSeverity) { … }
TEST(LogHygieneTest, ExpressionEvaluationInStreamedMessage) { … }
class UnbracedSwitchCompileTest { … };
}