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 |
7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "wtf/text/WTFString.h" | 9 #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, const char* system, bool expectedValid) | 15 CurrencyCodeTestCase(const char* code, const char* system, bool expectedValid) |
16 : code(code), system(system), expectedValid(expectedValid) {} | 16 : code(code), system(system), expectedValid(expectedValid) {} |
17 ~CurrencyCodeTestCase() {} | 17 ~CurrencyCodeTestCase() {} |
18 | 18 |
19 const char* code; | 19 const char* code; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 ShippingAddressTestCase("US", "", "", true), | 268 ShippingAddressTestCase("US", "", "", true), |
269 // Invalid shipping addresses | 269 // Invalid shipping addresses |
270 ShippingAddressTestCase("", "", "", false), | 270 ShippingAddressTestCase("", "", "", false), |
271 ShippingAddressTestCase("InvalidCountryCode", "", "", false), | 271 ShippingAddressTestCase("InvalidCountryCode", "", "", false), |
272 ShippingAddressTestCase("US", "InvalidLanguageCode", "", false), | 272 ShippingAddressTestCase("US", "InvalidLanguageCode", "", false), |
273 ShippingAddressTestCase("US", "en", "InvalidScriptCode", false), | 273 ShippingAddressTestCase("US", "en", "InvalidScriptCode", false), |
274 ShippingAddressTestCase("US", "", "Latn", false))); | 274 ShippingAddressTestCase("US", "", "Latn", false))); |
275 | 275 |
276 } // namespace | 276 } // namespace |
277 } // namespace blink | 277 } // namespace blink |
OLD | NEW |