Lines Matching refs:Log
22 enum class TestChannel : Log::MaskType {
23 FOO = Log::ChannelFlag<0>,
24 BAR = Log::ChannelFlag<1>,
30 static constexpr Log::Category test_categories[] = {
35 static Log::Channel test_channel(test_categories, TestChannel::FOO);
38 template <> Log::Channel &LogChannelFor<TestChannel>() { return test_channel; } in LogChannelFor()
48 return Log::EnableLogChannel(log_handler_sp, log_options, channel, categories, in EnableChannel()
57 return Log::DisableLogChannel(channel, categories, error_stream); in DisableChannel()
63 return Log::ListChannelCategories(channel, result_stream); in ListCategories()
69 void TearDown() override { Log::DisableAllLogChannels(); } in TearDown()
71 static void SetUpTestCase() { Log::Register("chan", test_channel); } in SetUpTestCase()
74 Log::Unregister("chan"); in TearDownTestCase()
95 Log *m_log;
100 Log *getLog() { return m_log; } in getLog()
140 Log *log = nullptr; in TEST()
146 Log::Register("chan", test_channel); in TEST()
147 Log::Unregister("chan"); in TEST()
148 Log::Register("chan", test_channel); in TEST()
149 Log::Unregister("chan"); in TEST()
154 Log::Register("chan", test_channel); in TEST()
159 Log::EnableLogChannel(log_handler_sp, 0, "chan", {"foo"}, llvm::nulls())); in TEST()
161 Log::Unregister("chan"); in TEST()
226 Log *log = GetLog(TestChannel::FOO); in TEST_F()
373 EXPECT_THAT(mask, testing::AnyOf(0, Log::MaskType(TestChannel::FOO))); in TEST_F()