| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/currency_formatter.h" | 5 #include "components/payments/core/currency_formatter.h" |
| 6 | 6 |
| 7 #include "base/optional.h" | |
| 8 #include "base/strings/string16.h" | |
| 9 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 10 |
| 13 namespace payments { | 11 namespace payments { |
| 14 | 12 |
| 15 struct TestCase { | 13 struct TestCase { |
| 16 TestCase(const char* amount, | 14 TestCase(const char* amount, |
| 17 const char* currency_code, | 15 const char* currency_code, |
| 18 const char* locale_name, | 16 const char* locale_name, |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 "JPY", | 167 "JPY", |
| 170 "http://currsystem.com"), | 168 "http://currsystem.com"), |
| 171 TestCase("0.1234", | 169 TestCase("0.1234", |
| 172 "USD", | 170 "USD", |
| 173 "en_US", | 171 "en_US", |
| 174 "0.1234", | 172 "0.1234", |
| 175 "USD", | 173 "USD", |
| 176 "http://currsystem.com"))); | 174 "http://currsystem.com"))); |
| 177 | 175 |
| 178 } // namespace payments | 176 } // namespace payments |
| OLD | NEW |