| 41 | }; |
| 42 | |
| 43 | TEST_F(LogInterfaceTest, ignore_log_less_than_min_severity) { |
| 44 | LogInterface::set_min_severity(LogInterface::SEVERITY_WARNING); |
| 45 | ::testing::internal::CaptureStderr(); |
| 46 | BABYLON_LOG(INFO) << "this line should not appear in stderr"; |
| 47 | auto text = ::testing::internal::GetCapturedStderr(); |
| 48 | ASSERT_TRUE(text.empty()); |
| 49 | } |
| 50 | |
| 51 | TEST_F(LogInterfaceTest, change_log_backend) { |
| 52 | LogInterface::set_provider( |