Chromium Code Reviews| 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 "net/base/registry_controlled_domains/registry_controlled_domain.h" | 5 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 6 #include "net/base/registry_controlled_domains/test_util.h" | |
|
Adam Rice
2015/01/19 06:05:57
Please remove this too.
yhirano
2015/01/19 06:11:53
Done.
| |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 7 #include "url/gurl.h" | 8 #include "url/gurl.h" |
| 8 | 9 |
| 9 namespace { | 10 namespace { |
| 10 namespace test1 { | 11 namespace test1 { |
| 11 #include "net/base/registry_controlled_domains/effective_tld_names_unittest1-inc .cc" | 12 #include "net/base/registry_controlled_domains/effective_tld_names_unittest1-inc .cc" |
| 12 } | 13 } |
| 13 namespace test2 { | 14 namespace test2 { |
| 14 #include "net/base/registry_controlled_domains/effective_tld_names_unittest2-inc .cc" | 15 #include "net/base/registry_controlled_domains/effective_tld_names_unittest2-inc .cc" |
| 15 } | 16 } |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 491 GetRegistryLengthFromHostIncludingPrivate( | 492 GetRegistryLengthFromHostIncludingPrivate( |
| 492 key4, EXCLUDE_UNKNOWN_REGISTRIES)); | 493 key4, EXCLUDE_UNKNOWN_REGISTRIES)); |
| 493 EXPECT_EQ(0U, | 494 EXPECT_EQ(0U, |
| 494 GetRegistryLengthFromHostIncludingPrivate( | 495 GetRegistryLengthFromHostIncludingPrivate( |
| 495 key5, EXCLUDE_UNKNOWN_REGISTRIES)); | 496 key5, EXCLUDE_UNKNOWN_REGISTRIES)); |
| 496 EXPECT_EQ(5U, GetRegistryLengthFromHost(key6, EXCLUDE_UNKNOWN_REGISTRIES)); | 497 EXPECT_EQ(5U, GetRegistryLengthFromHost(key6, EXCLUDE_UNKNOWN_REGISTRIES)); |
| 497 EXPECT_EQ(5U, GetRegistryLengthFromHost(key7, EXCLUDE_UNKNOWN_REGISTRIES)); | 498 EXPECT_EQ(5U, GetRegistryLengthFromHost(key7, EXCLUDE_UNKNOWN_REGISTRIES)); |
| 498 } | 499 } |
| 499 } // namespace registry_controlled_domains | 500 } // namespace registry_controlled_domains |
| 500 } // namespace net | 501 } // namespace net |
| OLD | NEW |