Index: net/base/ssl_false_start_blacklist_unittest.cc |
diff --git a/net/base/ssl_false_start_blacklist_unittest.cc b/net/base/ssl_false_start_blacklist_unittest.cc |
index 7eedae47d839b62aeb3fc19141677726c0957288..9c4aff237b50c516f04cf4f9b4dc59ad5bfa3b68 100644 |
--- a/net/base/ssl_false_start_blacklist_unittest.cc |
+++ b/net/base/ssl_false_start_blacklist_unittest.cc |
@@ -9,15 +9,17 @@ namespace net { |
TEST(SSLFalseStartBlacklistTest, LastTwoLabels) { |
#define F SSLFalseStartBlacklist::LastTwoLabels |
- EXPECT_STREQ(F("a.b.c.d"), "c.d"); |
- EXPECT_STREQ(F("a.b"), "a.b"); |
- EXPECT_STREQ(F("example.com"), "example.com"); |
- EXPECT_STREQ(F("www.example.com"), "example.com"); |
- EXPECT_STREQ(F("www.www.example.com"), "example.com"); |
+ EXPECT_EQ(F("a.b.c.d"), "c.d"); |
+ EXPECT_EQ(F("a.b"), "a.b"); |
+ EXPECT_EQ(F("example.com"), "example.com"); |
+ EXPECT_EQ(F("www.example.com"), "example.com"); |
+ EXPECT_EQ(F("www.www.example.com"), "example.com"); |
+ EXPECT_EQ(F("www.www.example.com."), "example.com"); |
+ EXPECT_EQ(F("www.www.example.com.."), "example.com"); |
- EXPECT_TRUE(F("com") == NULL); |
- EXPECT_TRUE(F(".com") == NULL); |
- EXPECT_TRUE(F("") == NULL); |
+ EXPECT_TRUE(F("com").empty()); |
+ EXPECT_TRUE(F(".com").empty()); |
+ EXPECT_TRUE(F("").empty()); |
#undef F |
} |