• Home
  • Raw
  • Download

Lines Matching refs:base

88   if (android::base::kEnableDChecks) {  in TEST()
93 if (android::base::kEnableDChecks) { in TEST()
98 if (android::base::kEnableDChecks) { in TEST()
111 static_assert(android::base::severity < android::base::FATAL, "Bad input"); \
112 for (size_t i = static_cast<size_t>(android::base::severity) + 1; \
113 i <= static_cast<size_t>(android::base::FATAL); \
116 android::base::ScopedLogSeverity sls2(static_cast<android::base::LogSeverity>(i)); \
120 android::base::ScopedLogSeverity sls2(static_cast<android::base::LogSeverity>(i)); \
121 EXPECT_FALSE(WOULD_LOG(::android::base::severity)) << i; \
126 for (size_t i = static_cast<size_t>(android::base::VERBOSE); \
127 i <= static_cast<size_t>(android::base::severity); \
130 android::base::ScopedLogSeverity sls2(static_cast<android::base::LogSeverity>(i)); \
134 android::base::ScopedLogSeverity sls2(static_cast<android::base::LogSeverity>(i)); \
135 EXPECT_TRUE(WOULD_LOG(::android::base::severity)) << i; \
196 static std::string make_log_pattern(android::base::LogSeverity severity, in make_log_pattern()
199 static_assert(arraysize(log_characters) - 1 == android::base::FATAL + 1, in make_log_pattern()
203 return android::base::StringPrintf( in make_log_pattern()
209 static void CheckMessage(const std::string& output, android::base::LogSeverity severity, in CheckMessage()
232 static void CheckMessage(CapturedStderr& cap, android::base::LogSeverity severity, in CheckMessage()
241 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
248 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
250 LOG_STREAM(::android::base::severity) << "foo bar"; \
257 android::base::ScopedLogSeverity sls2(android::base::severity); \
260 CheckMessage(cap2, android::base::severity, "foobar"); \
263 android::base::ScopedLogSeverity sls2(android::base::severity); \
265 LOG_STREAM(::android::base::severity) << "foobar"; \
266 CheckMessage(cap2, android::base::severity, "foobar"); \
322 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
329 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
331 LOG(::android::base::severity) << "foo bar"; \
338 android::base::ScopedLogSeverity sls2(android::base::severity); \
341 CheckMessage(cap2, android::base::severity, "foobar"); \
344 android::base::ScopedLogSeverity sls2(android::base::severity); \
346 LOG(::android::base::severity) << "foobar"; \
347 CheckMessage(cap2, android::base::severity, "foobar"); \
352 ASSERT_DEATH({SuppressAbortUI(); LOG(::android::base::FATAL) << "foobar";}, "foobar"); in TEST()
409 android::base::ScopedLogSeverity sls( \ in TEST()
410 (use_scoped_log_severity_info) ? ::android::base::INFO : ::android::base::WARNING); \ in TEST()
412 LOG((use_logging_severity_info) ? ::android::base::INFO : ::android::base::WARNING) \ in TEST()
416 cap, (use_logging_severity_info) ? ::android::base::INFO : ::android::base::WARNING, \ in TEST()
439 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::INFO, "67890")); in TEST()
448 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::INFO, "67890")); in TEST()
476 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
483 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
492 android::base::ScopedLogSeverity sls2(android::base::severity); \
496 CheckMessage(cap2, android::base::severity, "foobar: No such file or directory"); \
499 android::base::ScopedLogSeverity sls2(android::base::severity); \
503 CheckMessage(cap2, android::base::severity, "foobar: No such file or directory"); \
508 ASSERT_DEATH({SuppressAbortUI(); PLOG(::android::base::FATAL) << "foobar";}, "foobar"); in TEST()
564 std::string expected = android::base::StringPrintf("%s unimplemented ", __PRETTY_FUNCTION__); in TEST()
569 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::ERROR, expected.c_str())); in TEST()
579 android::base::SetAborter(NoopAborter); in TEST()
581 android::base::ScopedLogSeverity sls(android::base::ERROR); in TEST()
585 android::base::SetAborter(android::base::DefaultAborter); in TEST()
588 ASSERT_NO_FATAL_FAILURE(CheckMessage(output, android::base::FATAL, "foobar")); in TEST()
589 ASSERT_NO_FATAL_FAILURE(CheckMessage(output, android::base::ERROR, "called noop")); in TEST()
609 android::base::SetAborter(CountLineAborter::CountLineAborterFunction); in TEST()
611 android::base::ScopedLogSeverity sls(android::base::ERROR); in TEST()
627 std::string old_default_tag = android::base::GetDefaultTag(); in TEST()
628 android::base::SetDefaultTag(expected_tag); in TEST()
629 android::base::ScopedLogSeverity sls(android::base::LogSeverity::INFO); in TEST()
631 android::base::SetDefaultTag(old_default_tag); in TEST()
634 CheckMessage(cap, android::base::LogSeverity::INFO, expected_msg, expected_tag)); in TEST()
640 android::base::SetLogger(android::base::StdioLogger); in TEST()
649 ASSERT_EQ(android::base::Basename(android::base::GetExecutablePath()) + ": err\n", cap_err.str()); in TEST()