| OLD | NEW |
| (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_ |
| OLD | NEW |