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

Side by Side Diff: chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h

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 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/payments/chrome_payment_request_delegate.h"
10 #include "chrome/browser/ui/views/payments/payment_request_dialog.h"
11
12 namespace content {
13 class WebContents;
14 }
15
16 namespace payments {
17
18 class PaymentRequest;
19
20 // Implementation of the Payment Request delegate used in tests.
21 class TestChromePaymentRequestDelegate : public ChromePaymentRequestDelegate {
22 public:
23 TestChromePaymentRequestDelegate(
24 content::WebContents* web_contents,
25 PaymentRequestDialog::ObserverForTest* observer);
26
27 void ShowPaymentRequestDialog(PaymentRequest* request) override;
28
29 private:
30 PaymentRequestDialog::ObserverForTest* observer_;
31
32 DISALLOW_COPY_AND_ASSIGN(TestChromePaymentRequestDelegate);
33 };
34
35 } // namespace payments
36
37 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698