| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/lookup_string_in_fixed_set.h" | 5 #include "base/lookup_string_in_fixed_set.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <limits> | 10 #include <limits> |
| 11 #include <ostream> | 11 #include <ostream> |
| 12 #include <utility> | 12 #include <utility> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/base_paths.h" | 15 #include "base/base_paths.h" |
| 16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 20 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 namespace net { | 23 namespace base { |
| 24 namespace { | 24 namespace { |
| 25 namespace test1 { | 25 namespace test1 { |
| 26 #include "net/base/registry_controlled_domains/effective_tld_names_unittest1-inc
.cc" | 26 #include "base/test/dafsa/effective_tld_names_unittest1-inc.cc" |
| 27 } | 27 } |
| 28 namespace test3 { | 28 namespace test3 { |
| 29 #include "net/base/registry_controlled_domains/effective_tld_names_unittest3-inc
.cc" | 29 #include "base/test/dafsa/effective_tld_names_unittest3-inc.cc" |
| 30 } | 30 } |
| 31 namespace test4 { | 31 namespace test4 { |
| 32 #include "net/base/registry_controlled_domains/effective_tld_names_unittest4-inc
.cc" | 32 #include "base/test/dafsa/effective_tld_names_unittest4-inc.cc" |
| 33 } | 33 } |
| 34 namespace test5 { | 34 namespace test5 { |
| 35 #include "net/base/registry_controlled_domains/effective_tld_names_unittest5-inc
.cc" | 35 #include "base/test/dafsa/effective_tld_names_unittest5-inc.cc" |
| 36 } | 36 } |
| 37 namespace test6 { | 37 namespace test6 { |
| 38 #include "net/base/registry_controlled_domains/effective_tld_names_unittest6-inc
.cc" | 38 #include "base/test/dafsa/effective_tld_names_unittest6-inc.cc" |
| 39 } | 39 } |
| 40 | 40 |
| 41 struct Expectation { | 41 struct Expectation { |
| 42 const char* const key; | 42 const char* const key; |
| 43 int value; | 43 int value; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 void PrintTo(const Expectation& expectation, std::ostream* os) { | 46 void PrintTo(const Expectation& expectation, std::ostream* os) { |
| 47 *os << "{\"" << expectation.key << "\", " << expectation.value << "}"; | 47 *os << "{\"" << expectation.key << "\", " << expectation.value << "}"; |
| 48 } | 48 } |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 std::vector<std::string> expected_language = { | 243 std::vector<std::string> expected_language = { |
| 244 "ia, 0", "jb, 4", "kaa, 0", "lbb, 4", "maaaa, 0", "nbbbb, 0", | 244 "ia, 0", "jb, 4", "kaa, 0", "lbb, 4", "maaaa, 0", "nbbbb, 0", |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 EXPECT_EQ(expected_language, language); | 247 EXPECT_EQ(expected_language, language); |
| 248 } | 248 } |
| 249 | 249 |
| 250 } // namespace | 250 } // namespace |
| 251 } // namespace net | 251 } // namespace net |
| OLD | NEW |