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

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

Issue 2770193003: Implement request id in PaymentDetailsInit (Closed)
Patch Set: s/requestId/id 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
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 static java.util.Arrays.asList; 7 import static java.util.Arrays.asList;
8 8
9 import android.os.Handler; 9 import android.os.Handler;
10 import android.view.KeyEvent; 10 import android.view.KeyEvent;
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 } 989 }
990 990
991 @Override 991 @Override
992 public Set<String> getInstrumentMethodNames() { 992 public Set<String> getInstrumentMethodNames() {
993 Set<String> result = new HashSet<>(); 993 Set<String> result = new HashSet<>();
994 result.add(mMethodName); 994 result.add(mMethodName);
995 return result; 995 return result;
996 } 996 }
997 997
998 @Override 998 @Override
999 public void invokePaymentApp(String merchantName, String origin, String iframeOrigin, 999 public void invokePaymentApp(String id, String merchantName, String orig in,
1000 byte[][] certificateChain, Map<String, PaymentMethodData> method Data, 1000 String iframeOrigin, byte[][] certificateChain,
1001 PaymentItem total, List<PaymentItem> displayItems, 1001 Map<String, PaymentMethodData> methodData, PaymentItem total,
1002 Map<String, PaymentDetailsModifier> modifiers, 1002 List<PaymentItem> displayItems, Map<String, PaymentDetailsModifi er> modifiers,
1003 InstrumentDetailsCallback detailsCallback) { 1003 InstrumentDetailsCallback detailsCallback) {
1004 detailsCallback.onInstrumentDetailsReady( 1004 detailsCallback.onInstrumentDetailsReady(
1005 mMethodName, "{\"transaction\": 1337}"); 1005 mMethodName, "{\"transaction\": 1337}");
1006 } 1006 }
1007 1007
1008 @Override 1008 @Override
1009 public void dismissInstrument() {} 1009 public void dismissInstrument() {}
1010 } 1010 }
1011 } 1011 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698