| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 CVC_PROMPT_SHOWN, | 83 CVC_PROMPT_SHOWN, |
| 84 NOT_SUPPORTED_ERROR, | 84 NOT_SUPPORTED_ERROR, |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 protected: | 87 protected: |
| 88 // Test will open a browser window to |test_file_path| (relative to | 88 // Test will open a browser window to |test_file_path| (relative to |
| 89 // chrome/test/data/payments). | 89 // chrome/test/data/payments). |
| 90 explicit PaymentRequestBrowserTestBase(const std::string& test_file_path); | 90 explicit PaymentRequestBrowserTestBase(const std::string& test_file_path); |
| 91 ~PaymentRequestBrowserTestBase() override; | 91 ~PaymentRequestBrowserTestBase() override; |
| 92 | 92 |
| 93 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 93 void SetUpOnMainThread() override; | 94 void SetUpOnMainThread() override; |
| 94 | 95 |
| 95 void NavigateTo(const std::string& file_path); | 96 void NavigateTo(const std::string& file_path); |
| 96 | 97 |
| 97 void SetIncognito(); | 98 void SetIncognito(); |
| 98 void SetInvalidSsl(); | 99 void SetInvalidSsl(); |
| 99 | 100 |
| 100 // PaymentRequest::ObserverForTest: | 101 // PaymentRequest::ObserverForTest: |
| 101 void OnCanMakePaymentCalled() override; | 102 void OnCanMakePaymentCalled() override; |
| 102 void OnNotSupportedError() override; | 103 void OnNotSupportedError() override; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); | 265 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); |
| 265 }; | 266 }; |
| 266 | 267 |
| 267 } // namespace payments | 268 } // namespace payments |
| 268 | 269 |
| 269 std::ostream& operator<<( | 270 std::ostream& operator<<( |
| 270 std::ostream& out, | 271 std::ostream& out, |
| 271 payments::PaymentRequestBrowserTestBase::DialogEvent event); | 272 payments::PaymentRequestBrowserTestBase::DialogEvent event); |
| 272 | 273 |
| 273 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ | 274 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| OLD | NEW |