Lines Matching refs:GetVlogLevel
22 EXPECT_EQ(0, VlogInfo("", "", &min_log_level).GetVlogLevel("test1"));
23 EXPECT_EQ(0, VlogInfo("0", "", &min_log_level).GetVlogLevel("test2"));
24 EXPECT_EQ(0, VlogInfo("blah", "", &min_log_level).GetVlogLevel("test3"));
25 EXPECT_EQ(0, VlogInfo("0blah1", "", &min_log_level).GetVlogLevel("test4"));
26 EXPECT_EQ(1, VlogInfo("1", "", &min_log_level).GetVlogLevel("test5"));
27 EXPECT_EQ(5, VlogInfo("5", "", &min_log_level).GetVlogLevel("test6"));
84 EXPECT_EQ(-1, vlog_info.GetVlogLevel("/path/to/grault.cc"));
85 EXPECT_EQ(0, vlog_info.GetVlogLevel("/path/to/foo.cc"));
86 EXPECT_EQ(0, vlog_info.GetVlogLevel("D:\\Path\\To\\bar-inl.mm"));
87 EXPECT_EQ(-1, vlog_info.GetVlogLevel("D:\\path\\to what/bar_unittest.m"));
88 EXPECT_EQ(0, vlog_info.GetVlogLevel("baz.h"));
89 EXPECT_EQ(0, vlog_info.GetVlogLevel("/another/path/to/qux.h"));
90 EXPECT_EQ(1, vlog_info.GetVlogLevel("/path/to/quux"));
91 EXPECT_EQ(5, vlog_info.GetVlogLevel("c:\\path/to/corge.ext.h"));
99 EXPECT_EQ(0, vlog_info.GetVlogLevel("/foo/bar.cc"));
100 EXPECT_EQ(0, vlog_info.GetVlogLevel("bar.cc"));
101 EXPECT_EQ(1, vlog_info.GetVlogLevel("foo/bar.cc"));
103 EXPECT_EQ(0, vlog_info.GetVlogLevel("baz/grault/qux.h"));
104 EXPECT_EQ(0, vlog_info.GetVlogLevel("/baz/grault/qux.cc"));
105 EXPECT_EQ(2, vlog_info.GetVlogLevel("baz/grault/qux.cc"));
106 EXPECT_EQ(2, vlog_info.GetVlogLevel("baz/grault/blah/qux.cc"));
107 EXPECT_EQ(2, vlog_info.GetVlogLevel("baz\\grault\\qux.cc"));
108 EXPECT_EQ(2, vlog_info.GetVlogLevel("baz\\grault//blah\\qux.cc"));
110 EXPECT_EQ(0, vlog_info.GetVlogLevel("/foo/bar/baz/quux.cc"));
111 EXPECT_EQ(3, vlog_info.GetVlogLevel("/foo/bar/baz/quux/grault.cc"));
112 EXPECT_EQ(3, vlog_info.GetVlogLevel("/foo\\bar/baz\\quux/grault.cc"));
114 EXPECT_EQ(0, vlog_info.GetVlogLevel("foo/bar/test-inl.cc"));
115 EXPECT_EQ(4, vlog_info.GetVlogLevel("foo/bar/test-inl.h"));
116 EXPECT_EQ(4, vlog_info.GetVlogLevel("foo/bar/baz/blah-inl.h"));