Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/CurrencyFormatterTest.java

Issue 2645813006: Download web payment manifests. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/android/javatests/DEPS ('k') | chrome/android/junit/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/android/javatests/DEPS ('k') | chrome/android/junit/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698