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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/views/payments/test_chrome_payment_request_delegate. h"
6
7 #include "content/public/browser/web_contents.h"
8
9 namespace payments {
10
11 TestChromePaymentRequestDelegate::TestChromePaymentRequestDelegate(
12 content::WebContents* web_contents,
13 PaymentRequestDialog::ObserverForTest* observer)
14 : ChromePaymentRequestDelegate(web_contents), observer_(observer) {}
15
16 void TestChromePaymentRequestDelegate::ShowPaymentRequestDialog(
17 PaymentRequest* request) {
18 PaymentRequestDialog::ShowWebModalPaymentDialog(
19 new PaymentRequestDialog(request, observer_), request);
20 }
21
22 } // namespace payments
OLDNEW
« 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