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

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: Rebase once more since mojom file moved Created 3 years, 7 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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 } 1006 }
1007 1007
1008 @Override 1008 @Override
1009 public Set<String> getInstrumentMethodNames() { 1009 public Set<String> getInstrumentMethodNames() {
1010 Set<String> result = new HashSet<>(); 1010 Set<String> result = new HashSet<>();
1011 result.add(mMethodName); 1011 result.add(mMethodName);
1012 return result; 1012 return result;
1013 } 1013 }
1014 1014
1015 @Override 1015 @Override
1016 public void invokePaymentApp(String merchantName, String origin, String iframeOrigin, 1016 public void invokePaymentApp(String id, String merchantName, String orig in,
1017 byte[][] certificateChain, Map<String, PaymentMethodData> method Data, 1017 String iframeOrigin, byte[][] certificateChain,
1018 PaymentItem total, List<PaymentItem> displayItems, 1018 Map<String, PaymentMethodData> methodData, PaymentItem total,
1019 Map<String, PaymentDetailsModifier> modifiers, 1019 List<PaymentItem> displayItems, Map<String, PaymentDetailsModifi er> modifiers,
1020 InstrumentDetailsCallback detailsCallback) { 1020 InstrumentDetailsCallback detailsCallback) {
1021 detailsCallback.onInstrumentDetailsReady( 1021 detailsCallback.onInstrumentDetailsReady(
1022 mMethodName, "{\"transaction\": 1337}"); 1022 mMethodName, "{\"transaction\": 1337}");
1023 } 1023 }
1024 1024
1025 @Override 1025 @Override
1026 public void dismissInstrument() {} 1026 public void dismissInstrument() {}
1027 } 1027 }
1028 } 1028 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698