| Index: chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h
|
| diff --git a/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..adccc3790b1c731b3621e497b2ced04428e079e4
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h
|
| @@ -0,0 +1,37 @@
|
| +// 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.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/payments/chrome_payment_request_delegate.h"
|
| +#include "chrome/browser/ui/views/payments/payment_request_dialog.h"
|
| +
|
| +namespace content {
|
| +class WebContents;
|
| +}
|
| +
|
| +namespace payments {
|
| +
|
| +class PaymentRequest;
|
| +
|
| +// Implementation of the Payment Request delegate used in tests.
|
| +class TestChromePaymentRequestDelegate : public ChromePaymentRequestDelegate {
|
| + public:
|
| + TestChromePaymentRequestDelegate(
|
| + content::WebContents* web_contents,
|
| + PaymentRequestDialog::ObserverForTest* observer);
|
| +
|
| + void ShowPaymentRequestDialog(PaymentRequest* request) override;
|
| +
|
| + private:
|
| + PaymentRequestDialog::ObserverForTest* observer_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(TestChromePaymentRequestDelegate);
|
| +};
|
| +
|
| +} // namespace payments
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_TEST_CHROME_PAYMENT_REQUEST_DELEGATE_H_
|
|
|