| 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 <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 : public InProcessBrowserTest, | 61 : public InProcessBrowserTest, |
| 62 public PaymentRequest::ObserverForTest, | 62 public PaymentRequest::ObserverForTest, |
| 63 public PaymentRequestDialogView::ObserverForTest, | 63 public PaymentRequestDialogView::ObserverForTest, |
| 64 public views::WidgetObserver { | 64 public views::WidgetObserver { |
| 65 protected: | 65 protected: |
| 66 // Test will open a browser window to |test_file_path| (relative to | 66 // Test will open a browser window to |test_file_path| (relative to |
| 67 // chrome/test/data/payments). | 67 // chrome/test/data/payments). |
| 68 explicit PaymentRequestBrowserTestBase(const std::string& test_file_path); | 68 explicit PaymentRequestBrowserTestBase(const std::string& test_file_path); |
| 69 ~PaymentRequestBrowserTestBase() override; | 69 ~PaymentRequestBrowserTestBase() override; |
| 70 | 70 |
| 71 void SetUpCommandLine(base::CommandLine* command_line) override; | |
| 72 void SetUpOnMainThread() override; | 71 void SetUpOnMainThread() override; |
| 73 | 72 |
| 74 void SetIncognito(); | 73 void SetIncognito(); |
| 75 void SetInvalidSsl(); | 74 void SetInvalidSsl(); |
| 76 | 75 |
| 77 // PaymentRequest::ObserverForTest: | 76 // PaymentRequest::ObserverForTest: |
| 78 void OnCanMakePaymentCalled() override; | 77 void OnCanMakePaymentCalled() override; |
| 79 void OnNotSupportedError() override; | 78 void OnNotSupportedError() override; |
| 80 | 79 |
| 81 // PaymentRequestDialogView::ObserverForTest: | 80 // PaymentRequestDialogView::ObserverForTest: |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 TestChromePaymentRequestDelegate* delegate_; | 258 TestChromePaymentRequestDelegate* delegate_; |
| 260 bool is_incognito_; | 259 bool is_incognito_; |
| 261 bool is_valid_ssl_; | 260 bool is_valid_ssl_; |
| 262 | 261 |
| 263 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); | 262 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); |
| 264 }; | 263 }; |
| 265 | 264 |
| 266 } // namespace payments | 265 } // namespace payments |
| 267 | 266 |
| 268 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ | 267 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| OLD | NEW |