diff --git a/test/cpp/util/string_ref_test.cc b/test/cpp/util/string_ref_test.cc
index b6ec9f3eecf55d2dfd758890432d3f0feb9644ee..5264682e5da98bbb8a63404c600e6d0a92130076 100644
--- a/test/cpp/util/string_ref_test.cc
+++ b/test/cpp/util/string_ref_test.cc
@@ -120,13 +120,13 @@ TEST_F(StringRefTest, Capacity) {
   EXPECT_EQ(0, empty.length());
   EXPECT_EQ(0, empty.size());
   EXPECT_EQ(0, empty.max_size());
-  EXPECT_EQ(true, empty.empty());
+  EXPECT_TRUE(empty.empty());
 
   string_ref s(kTestString);
   EXPECT_EQ(strlen(kTestString), s.length());
   EXPECT_EQ(s.length(), s.size());
   EXPECT_EQ(s.max_size(), s.length());
-  EXPECT_EQ(false, s.empty());
+  EXPECT_FALSE(s.empty());
 }
 
 TEST_F(StringRefTest, Compare) {