| 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 "modules/payments/PaymentsValidators.h" | 5 #include "modules/payments/PaymentsValidators.h" |
| 6 | 6 |
| 7 #include <ostream> // NOLINT |
| 8 #include "platform/wtf/text/WTFString.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "wtf/text/WTFString.h" | |
| 9 #include <ostream> // NOLINT | |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 struct CurrencyCodeTestCase { | 14 struct CurrencyCodeTestCase { |
| 15 CurrencyCodeTestCase(const char* code, | 15 CurrencyCodeTestCase(const char* code, |
| 16 const char* system, | 16 const char* system, |
| 17 bool expected_valid) | 17 bool expected_valid) |
| 18 : code(code), system(system), expected_valid(expected_valid) {} | 18 : code(code), system(system), expected_valid(expected_valid) {} |
| 19 ~CurrencyCodeTestCase() {} | 19 ~CurrencyCodeTestCase() {} |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 ShippingAddressTestCase("US", "", "", true), | 276 ShippingAddressTestCase("US", "", "", true), |
| 277 // Invalid shipping addresses | 277 // Invalid shipping addresses |
| 278 ShippingAddressTestCase("", "", "", false), | 278 ShippingAddressTestCase("", "", "", false), |
| 279 ShippingAddressTestCase("InvalidCountryCode", "", "", false), | 279 ShippingAddressTestCase("InvalidCountryCode", "", "", false), |
| 280 ShippingAddressTestCase("US", "InvalidLanguageCode", "", false), | 280 ShippingAddressTestCase("US", "InvalidLanguageCode", "", false), |
| 281 ShippingAddressTestCase("US", "en", "InvalidScriptCode", false), | 281 ShippingAddressTestCase("US", "en", "InvalidScriptCode", false), |
| 282 ShippingAddressTestCase("US", "", "Latn", false))); | 282 ShippingAddressTestCase("US", "", "Latn", false))); |
| 283 | 283 |
| 284 } // namespace | 284 } // namespace |
| 285 } // namespace blink | 285 } // namespace blink |
| OLD | NEW |