| Index: net/cert/internal/verify_name_match_unittest.cc
|
| diff --git a/net/cert/internal/verify_name_match_unittest.cc b/net/cert/internal/verify_name_match_unittest.cc
|
| index 0bdce8a028ac56ee7b8dd92e0d91257a57273100..b7e16ad0ade4b5102543a36992a3865836c6fc39 100644
|
| --- a/net/cert/internal/verify_name_match_unittest.cc
|
| +++ b/net/cert/internal/verify_name_match_unittest.cc
|
| @@ -11,10 +11,13 @@ namespace net {
|
|
|
| TEST(VerifyNameMatchTest, Simple) {
|
| // TODO(mattm): Use valid Names.
|
| - EXPECT_TRUE(VerifyNameMatch(der::Input("hello"), der::Input("hello")));
|
| - EXPECT_FALSE(VerifyNameMatch(der::Input("aello"), der::Input("hello")));
|
| - EXPECT_FALSE(VerifyNameMatch(der::Input("hello"), der::Input("hello1")));
|
| - EXPECT_FALSE(VerifyNameMatch(der::Input("hello1"), der::Input("hello")));
|
| + const uint8_t hello[] = {'h', 'e', 'l', 'l', 'o'};
|
| + const uint8_t aello[] = {'a', 'e', 'l', 'l', 'o'};
|
| + const uint8_t hello1[] = {'h', 'e', 'l', 'l', 'o', '1'};
|
| + EXPECT_TRUE(VerifyNameMatch(der::Input(hello), der::Input(hello)));
|
| + EXPECT_FALSE(VerifyNameMatch(der::Input(aello), der::Input(hello)));
|
| + EXPECT_FALSE(VerifyNameMatch(der::Input(hello), der::Input(hello1)));
|
| + EXPECT_FALSE(VerifyNameMatch(der::Input(hello1), der::Input(hello)));
|
| }
|
|
|
| } // namespace net
|
|
|