| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <cstddef> | 5 #include <cstddef> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 TEST_F(PreloadAddressValidatorTest, CanonicalizeJpAdminAreaLatinName) { | 603 TEST_F(PreloadAddressValidatorTest, CanonicalizeJpAdminAreaLatinName) { |
| 604 validator_->LoadRules("JP", *loaded_); | 604 validator_->LoadRules("JP", *loaded_); |
| 605 AddressData address; | 605 AddressData address; |
| 606 address.region_code = "JP"; | 606 address.region_code = "JP"; |
| 607 address.administrative_area = "tOKYo"; | 607 address.administrative_area = "tOKYo"; |
| 608 EXPECT_TRUE(validator_->CanonicalizeAdministrativeArea(&address)); | 608 EXPECT_TRUE(validator_->CanonicalizeAdministrativeArea(&address)); |
| 609 EXPECT_EQ("TOKYO", address.administrative_area); | 609 EXPECT_EQ("TOKYO", address.administrative_area); |
| 610 } | 610 } |
| 611 | 611 |
| 612 } // namespace | 612 } // namespace |
| OLD | NEW |