Lines Matching refs:severity
130 #define CHECK_WOULD_LOG_DISABLED(severity) \ argument
131 static_assert(android::base::severity < android::base::FATAL, "Bad input"); \
132 for (size_t i = static_cast<size_t>(android::base::severity) + 1; \
137 EXPECT_FALSE(WOULD_LOG(severity)) << i; \
141 EXPECT_FALSE(WOULD_LOG(::android::base::severity)) << i; \
145 #define CHECK_WOULD_LOG_ENABLED(severity) \ argument
147 i <= static_cast<size_t>(android::base::severity); \
151 EXPECT_TRUE(WOULD_LOG(severity)) << i; \
155 EXPECT_TRUE(WOULD_LOG(::android::base::severity)) << i; \
212 static std::string make_log_pattern(android::base::LogSeverity severity, in make_log_pattern() argument
217 char log_char = log_characters[severity]; in make_log_pattern()
225 static void CheckMessage(const std::string& output, android::base::LogSeverity severity, in CheckMessage() argument
242 regex_str.append(make_log_pattern(severity, expected)); in CheckMessage()
248 static void CheckMessage(CapturedStderr& cap, android::base::LogSeverity severity, in CheckMessage() argument
252 return CheckMessage(output, severity, expected, expected_tag); in CheckMessage()
255 #define CHECK_LOG_STREAM_DISABLED(severity) \ argument
259 LOG_STREAM(severity) << "foo bar"; \
266 LOG_STREAM(::android::base::severity) << "foo bar"; \
271 #define CHECK_LOG_STREAM_ENABLED(severity) \ argument
273 android::base::ScopedLogSeverity sls2(android::base::severity); \
275 LOG_STREAM(severity) << "foobar"; \
276 CheckMessage(cap2, android::base::severity, "foobar"); \
279 android::base::ScopedLogSeverity sls2(android::base::severity); \
281 LOG_STREAM(::android::base::severity) << "foobar"; \
282 CheckMessage(cap2, android::base::severity, "foobar"); \
332 #define CHECK_LOG_DISABLED(severity) \ argument
336 LOG(severity) << "foo bar"; \
343 LOG(::android::base::severity) << "foo bar"; \
348 #define CHECK_LOG_ENABLED(severity) \ argument
350 android::base::ScopedLogSeverity sls2(android::base::severity); \
352 LOG(severity) << "foobar"; \
353 CheckMessage(cap2, android::base::severity, "foobar"); \
356 android::base::ScopedLogSeverity sls2(android::base::severity); \
358 LOG(::android::base::severity) << "foobar"; \
359 CheckMessage(cap2, android::base::severity, "foobar"); \
482 #define CHECK_PLOG_DISABLED(severity) \ argument
486 PLOG(severity) << "foo bar"; \
493 PLOG(severity) << "foo bar"; \
498 #define CHECK_PLOG_ENABLED(severity) \ argument
500 android::base::ScopedLogSeverity sls2(android::base::severity); \
503 PLOG(severity) << "foobar"; \
504 CheckMessage(cap2, android::base::severity, "foobar: No such file or directory"); \
507 android::base::ScopedLogSeverity sls2(android::base::severity); \
510 PLOG(severity) << "foobar"; \
511 CheckMessage(cap2, android::base::severity, "foobar: No such file or directory"); \