| Index: chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
|
| diff --git a/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..09c687770d51482801b87314152ba93e2a1a747f
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.cc
|
| @@ -0,0 +1,22 @@
|
| +// 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.
|
| +
|
| +#include "chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h"
|
| +
|
| +#include "content/public/browser/web_contents.h"
|
| +
|
| +namespace payments {
|
| +
|
| +TestChromePaymentRequestDelegate::TestChromePaymentRequestDelegate(
|
| + content::WebContents* web_contents,
|
| + PaymentRequestDialog::ObserverForTest* observer)
|
| + : ChromePaymentRequestDelegate(web_contents), observer_(observer) {}
|
| +
|
| +void TestChromePaymentRequestDelegate::ShowPaymentRequestDialog(
|
| + PaymentRequest* request) {
|
| + PaymentRequestDialog::ShowWebModalPaymentDialog(
|
| + new PaymentRequestDialog(request, observer_), request);
|
| +}
|
| +
|
| +} // namespace payments
|
|
|