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

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: Observer pattern 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(content::WebContents* web_contents,
24 PaymentRequestDialog::Observer* observer);
25
26 void ShowPaymentRequestDialog(PaymentRequest* request) override;
27
28 private:
29 PaymentRequestDialog::Observer* observer_;
30
31 DISALLOW_COPY_AND_ASSIGN(TestChromePaymentRequestDelegate);
32 };
33
34 } // namespace payments
35
36 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698