| Index: net/quic/crypto/crypto_utils_test.cc
|
| diff --git a/net/quic/crypto/crypto_utils_test.cc b/net/quic/crypto/crypto_utils_test.cc
|
| index 17eb19250eeb76eac53e0f394911aec61722d4e2..8ae9d1d6b168a7de50f4e79ac27835f9186aaec6 100644
|
| --- a/net/quic/crypto/crypto_utils_test.cc
|
| +++ b/net/quic/crypto/crypto_utils_test.cc
|
| @@ -28,15 +28,27 @@ TEST(CryptoUtilsTest, IsValidSNI) {
|
|
|
| TEST(CryptoUtilsTest, NormalizeHostname) {
|
| struct {
|
| - const char *input, *expected;
|
| + const char* input, *expected;
|
| } tests[] = {
|
| - { "www.google.com", "www.google.com", },
|
| - { "WWW.GOOGLE.COM", "www.google.com", },
|
| - { "www.google.com.", "www.google.com", },
|
| - { "www.google.COM.", "www.google.com", },
|
| - { "www.google.com..", "www.google.com", },
|
| - { "www.google.com........", "www.google.com", },
|
| - };
|
| + {
|
| + "www.google.com", "www.google.com",
|
| + },
|
| + {
|
| + "WWW.GOOGLE.COM", "www.google.com",
|
| + },
|
| + {
|
| + "www.google.com.", "www.google.com",
|
| + },
|
| + {
|
| + "www.google.COM.", "www.google.com",
|
| + },
|
| + {
|
| + "www.google.com..", "www.google.com",
|
| + },
|
| + {
|
| + "www.google.com........", "www.google.com",
|
| + },
|
| + };
|
|
|
| for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
|
| EXPECT_EQ(std::string(tests[i].expected),
|
|
|