Lines Matching refs:cap
248 static void CheckMessage(CapturedStderr& cap, android::base::LogSeverity severity, in CheckMessage() argument
250 cap.Stop(); in CheckMessage()
251 std::string output = cap.str(); in CheckMessage()
419 CapturedStderr cap; \ in TEST()
424 cap, (use_logging_severity_info) ? ::android::base::INFO : ::android::base::WARNING, \ in TEST()
427 cap.Stop(); \ in TEST()
428 ASSERT_EQ("", cap.str()); \ in TEST()
442 CapturedStderr cap; in TEST() local
447 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::INFO, "67890")); in TEST()
451 CapturedStderr cap; in TEST() local
456 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::INFO, "67890")); in TEST()
460 CapturedStderr cap; // So the logging below has no side-effects. in TEST() local
570 CapturedStderr cap; in TEST() local
573 ASSERT_NO_FATAL_FAILURE(CheckMessage(cap, android::base::ERROR, expected.c_str())); in TEST()
581 CapturedStderr cap; in TEST() local
587 cap.Stop(); in TEST()
591 std::string output = cap.str(); in TEST()
616 CapturedStderr cap; in TEST() local