From 43d1584e43e29bebe794f6265f5ccaea4f4bb866 Mon Sep 17 00:00:00 2001 From: Mark Shields Date: Tue, 14 Sep 2021 16:16:47 -0700 Subject: [PATCH] [checkpoint] woops, we don't support gmock.h --- tests/cpp/runtime/logging_test.cc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/tests/cpp/runtime/logging_test.cc b/tests/cpp/runtime/logging_test.cc index 88eb0d010a397..40dc78d1ae9c5 100644 --- a/tests/cpp/runtime/logging_test.cc +++ b/tests/cpp/runtime/logging_test.cc @@ -17,7 +17,6 @@ * under the License. */ -#include #include #include @@ -28,26 +27,26 @@ namespace { TEST(ParseTvmLogDebugSpec, Disabled) { auto map = ParseTvmLogDebugSpec(nullptr); - EXPECT_THAT(map.size(), testing::Eq(0)); + EXPECT_EQ(map.size(), 0); map = ParseTvmLogDebugSpec(""); - EXPECT_THAT(map.size(), testing::Eq(0)); + EXPECT_EQ(map.size(), 0); map = ParseTvmLogDebugSpec("0"); - EXPECT_THAT(map.size(), testing::Eq(0)); + EXPECT_EQ(map.size(), 0); map = ParseTvmLogDebugSpec("1"); - EXPECT_THAT(map.size(), testing::Eq(0)); + EXPECT_EQ(map.size(), 0); } TEST(ParseTvmLogDebugSpec, SomeEnabled) { auto map = ParseTvmLogDebugSpec("1;foo/bar.cc=3;baz.cc=-1;*=2;another/file.cc=4;"); - EXPECT_THAT(map.size(), testing::Eq(4)); + EXPECT_EQ(map.size(), 4); - EXPECT_THAT(map, testing::Contains(testing::Pair("*", 2))); - EXPECT_THAT(map, testing::Contains(testing::Pair("foo/bar.cc", 3))); - EXPECT_THAT(map, testing::Contains(testing::Pair("baz.cc", -1))); - EXPECT_THAT(map, testing::Contains(testing::Pair("another/file.cc", 4))); + EXPECT_EQ(map["*"], 2); + EXPECT_EQ(map["foo/bar.cc"], 3); + EXPECT_EQ(map["baz.cc"], -1); + EXPECT_EQ(map["another/file.cc"], 4); } TEST(ParseTvmLogDebugSpec, IllFormed) {