• Home
  • Raw
  • Download

Lines Matching refs:base

101   if (android::base::kEnableDChecks) {  in TEST()
106 if (android::base::kEnableDChecks) { in TEST()
112 if (android::base::kEnableDChecks) { in TEST()
118 if (android::base::kEnableDChecks) { in TEST()
131 static_assert(android::base::severity < android::base::FATAL, "Bad input"); \
132 for (size_t i = static_cast<size_t>(android::base::severity) + 1; \
133 i <= static_cast<size_t>(android::base::FATAL); \
136 android::base::ScopedLogSeverity sls2(static_cast<android::base::LogSeverity>(i)); \
140 android::base::ScopedLogSeverity sls2(static_cast<android::base::LogSeverity>(i)); \
141 EXPECT_FALSE(WOULD_LOG(::android::base::severity)) << i; \
146 for (size_t i = static_cast<size_t>(android::base::VERBOSE); \
147 i <= static_cast<size_t>(android::base::severity); \
150 android::base::ScopedLogSeverity sls2(static_cast<android::base::LogSeverity>(i)); \
154 android::base::ScopedLogSeverity sls2(static_cast<android::base::LogSeverity>(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()
215 static_assert(arraysize(log_characters) - 1 == android::base::FATAL + 1, in make_log_pattern()
219 return android::base::StringPrintf( in make_log_pattern()
225 static void CheckMessage(const std::string& output, android::base::LogSeverity severity, in CheckMessage()
248 static void CheckMessage(CapturedStderr& cap, android::base::LogSeverity severity, in CheckMessage()
257 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
264 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
266 LOG_STREAM(::android::base::severity) << "foo bar"; \
273 android::base::ScopedLogSeverity sls2(android::base::severity); \
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"); \
334 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
341 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
343 LOG(::android::base::severity) << "foo bar"; \
350 android::base::ScopedLogSeverity sls2(android::base::severity); \
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"); \
364 ASSERT_DEATH({SuppressAbortUI(); LOG(::android::base::FATAL) << "foobar";}, "foobar"); in TEST()
417 android::base::ScopedLogSeverity sls( \ in TEST()
418 (use_scoped_log_severity_info) ? ::android::base::INFO : ::android::base::WARNING); \ in TEST()
420 LOG((use_logging_severity_info) ? ::android::base::INFO : ::android::base::WARNING) \ in TEST()
424 cap, (use_logging_severity_info) ? ::android::base::INFO : ::android::base::WARNING, \ in TEST()
447 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::INFO, "67890")); in TEST()
456 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::INFO, "67890")); in TEST()
484 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
491 android::base::ScopedLogSeverity sls1(android::base::FATAL); \
500 android::base::ScopedLogSeverity sls2(android::base::severity); \
504 CheckMessage(cap2, android::base::severity, "foobar: No such file or directory"); \
507 android::base::ScopedLogSeverity sls2(android::base::severity); \
511 CheckMessage(cap2, android::base::severity, "foobar: No such file or directory"); \
516 ASSERT_DEATH({SuppressAbortUI(); PLOG(::android::base::FATAL) << "foobar";}, "foobar"); in TEST()
568 std::string expected = android::base::StringPrintf("%s unimplemented ", __PRETTY_FUNCTION__); in TEST()
573 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::ERROR, expected.c_str())); in TEST()
583 android::base::SetAborter(NoopAborter); in TEST()
585 android::base::ScopedLogSeverity sls(android::base::ERROR); in TEST()
589 android::base::SetAborter(android::base::DefaultAborter); in TEST()
592 ASSERT_NO_FATAL_FAILURE(CheckMessage(output, android::base::FATAL, "foobar")); in TEST()
593 ASSERT_NO_FATAL_FAILURE(CheckMessage(output, android::base::ERROR, "called noop")); in TEST()
613 android::base::SetAborter(CountLineAborter::CountLineAborterFunction); in TEST()
615 android::base::ScopedLogSeverity sls(android::base::ERROR); in TEST()
624 android::base::AbortFunction old_aborter; in TEST()
626 old_aborter = android::base::SetAborter(android::base::DefaultAborter); in TEST()
637 android::base::SetLogger(android::base::StdioLogger); in TEST()
646 ASSERT_EQ(android::base::Basename(android::base::GetExecutablePath()) + ": err\n", cap_err.str()); in TEST()
651 android::base::LogFunction old_function; in TEST()
653 old_function = android::base::SetLogger(android::base::StdioLogger); in TEST()
659 using namespace android::base; in TEST()