OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "googleurl/src/gurl.h" | 5 #include "googleurl/src/gurl.h" |
6 #include "net/base/registry_controlled_domain.h" | 6 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 #include "effective_tld_names_unittest1.cc" | 9 #include "effective_tld_names_unittest1.cc" |
10 #undef TOTAL_KEYWORDS | 10 #undef TOTAL_KEYWORDS |
11 #undef MIN_WORD_LENGTH | 11 #undef MIN_WORD_LENGTH |
12 #undef MAX_WORD_LENGTH | 12 #undef MAX_WORD_LENGTH |
13 #undef MIN_HASH_VALUE | 13 #undef MIN_HASH_VALUE |
14 #undef MAX_HASH_VALUE | 14 #undef MAX_HASH_VALUE |
15 #include "effective_tld_names_unittest2.cc" | 15 #include "effective_tld_names_unittest2.cc" |
16 | 16 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://google.com", false)); | 221 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://google.com", false)); |
222 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://stanford.edu", false)); | 222 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://stanford.edu", false)); |
223 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://ustreas.gov", false)); | 223 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://ustreas.gov", false)); |
224 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://icann.net", false)); | 224 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://icann.net", false)); |
225 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://ferretcentral.org", false)); | 225 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://ferretcentral.org", false)); |
226 EXPECT_EQ(0U, GetRegistryLengthFromURL("http://nowhere.foo", false)); | 226 EXPECT_EQ(0U, GetRegistryLengthFromURL("http://nowhere.foo", false)); |
227 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://nowhere.foo", true)); | 227 EXPECT_EQ(3U, GetRegistryLengthFromURL("http://nowhere.foo", true)); |
228 } | 228 } |
229 | 229 |
230 } // namespace net | 230 } // namespace net |
OLD | NEW |