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 package org.chromium.chrome.browser.payments; | 5 package org.chromium.chrome.browser.payments; |
6 | 6 |
7 import android.support.test.filters.MediumTest; | 7 import android.support.test.filters.MediumTest; |
8 | 8 |
9 import junit.framework.Assert; | 9 import junit.framework.Assert; |
10 | 10 |
11 import org.chromium.base.LocaleUtils; | 11 import org.chromium.base.LocaleUtils; |
| 12 import org.chromium.components.payments.CurrencyFormatter; |
12 import org.chromium.content.browser.test.NativeLibraryTestBase; | 13 import org.chromium.content.browser.test.NativeLibraryTestBase; |
13 | 14 |
14 import java.util.Arrays; | 15 import java.util.Arrays; |
15 import java.util.List; | 16 import java.util.List; |
16 | 17 |
17 /** | 18 /** |
18 * A lightweight integration test for CurrencyFormatter to run on an Android dev
ice. | 19 * A lightweight integration test for CurrencyFormatter to run on an Android dev
ice. |
19 */ | 20 */ |
20 public class CurrencyFormatterTest extends NativeLibraryTestBase { | 21 public class CurrencyFormatterTest extends NativeLibraryTestBase { |
21 /** | 22 /** |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 Assert.assertEquals("\"" + currency + "\" \"" + amount + "\" (\"" +
locale | 105 Assert.assertEquals("\"" + currency + "\" \"" + amount + "\" (\"" +
locale |
105 + "\" locale) should be formatted into \"" + expecte
dAmountFormatting | 106 + "\" locale) should be formatted into \"" + expecte
dAmountFormatting |
106 + "\"", | 107 + "\"", |
107 expectedAmountFormatting, formattedAmount); | 108 expectedAmountFormatting, formattedAmount); |
108 Assert.assertEquals("\"" + currency + "\"" | 109 Assert.assertEquals("\"" + currency + "\"" |
109 + " should be formatted into \"" + expectedCurrencyF
ormatting + "\"", | 110 + " should be formatted into \"" + expectedCurrencyF
ormatting + "\"", |
110 expectedCurrencyFormatting, formatter.getFormattedCurrencyCo
de()); | 111 expectedCurrencyFormatting, formatter.getFormattedCurrencyCo
de()); |
111 } | 112 } |
112 } | 113 } |
113 } | 114 } |
OLD | NEW |