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

Unified Diff: chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc

Issue 2631133003: [Payments] Introduce basic interactive browsertests for Payment Request (Closed)
Patch Set: ObserverForTest Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
diff --git a/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..09c687770d51482801b87314152ba93e2a1a747f
--- /dev/null
+++ b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
@@ -0,0 +1,22 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h"
+
+#include "content/public/browser/web_contents.h"
+
+namespace payments {
+
+TestChromePaymentRequestDelegate::TestChromePaymentRequestDelegate(
+ content::WebContents* web_contents,
+ PaymentRequestDialog::ObserverForTest* observer)
+ : ChromePaymentRequestDelegate(web_contents), observer_(observer) {}
+
+void TestChromePaymentRequestDelegate::ShowPaymentRequestDialog(
+ PaymentRequest* request) {
+ PaymentRequestDialog::ShowWebModalPaymentDialog(
+ new PaymentRequestDialog(request, observer_), request);
+}
+
+} // namespace payments
« no previous file with comments | « chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698