| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/payments/payments_validators.h" | 5 #include "components/payments/content/payments_validators.h" |
| 6 | 6 |
| 7 #include <ostream> // NOLINT |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include <ostream> // NOLINT | |
| 9 | 9 |
| 10 namespace payments { | 10 namespace payments { |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 struct CurrencyCodeTestCase { | 13 struct CurrencyCodeTestCase { |
| 14 CurrencyCodeTestCase(const char* code, const char* system, bool expectedValid) | 14 CurrencyCodeTestCase(const char* code, const char* system, bool expectedValid) |
| 15 : code(code), system(system), expectedValid(expectedValid) {} | 15 : code(code), system(system), expectedValid(expectedValid) {} |
| 16 ~CurrencyCodeTestCase() {} | 16 ~CurrencyCodeTestCase() {} |
| 17 | 17 |
| 18 const char* code; | 18 const char* code; |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 ShippingAddressTestCase("US", "", "", true), | 271 ShippingAddressTestCase("US", "", "", true), |
| 272 // Invalid shipping addresses | 272 // Invalid shipping addresses |
| 273 ShippingAddressTestCase("", "", "", false), | 273 ShippingAddressTestCase("", "", "", false), |
| 274 ShippingAddressTestCase("InvalidCountryCode", "", "", false), | 274 ShippingAddressTestCase("InvalidCountryCode", "", "", false), |
| 275 ShippingAddressTestCase("US", "InvalidLanguageCode", "", false), | 275 ShippingAddressTestCase("US", "InvalidLanguageCode", "", false), |
| 276 ShippingAddressTestCase("US", "en", "InvalidScriptCode", false), | 276 ShippingAddressTestCase("US", "en", "InvalidScriptCode", false), |
| 277 ShippingAddressTestCase("US", "", "Latn", false))); | 277 ShippingAddressTestCase("US", "", "Latn", false))); |
| 278 | 278 |
| 279 } // namespace | 279 } // namespace |
| 280 } // namespace payments | 280 } // namespace payments |
| OLD | NEW |