Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: chrome/browser/ui/views/payments/payment_request_browsertest_base.h

Issue 2866623003: PaymentRequest.canMakePayment() query quota on desktop. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 : public InProcessBrowserTest, 65 : public InProcessBrowserTest,
66 public PaymentRequest::ObserverForTest, 66 public PaymentRequest::ObserverForTest,
67 public PaymentRequestDialogView::ObserverForTest, 67 public PaymentRequestDialogView::ObserverForTest,
68 public views::WidgetObserver { 68 public views::WidgetObserver {
69 protected: 69 protected:
70 // Test will open a browser window to |test_file_path| (relative to 70 // Test will open a browser window to |test_file_path| (relative to
71 // chrome/test/data/payments). 71 // chrome/test/data/payments).
72 explicit PaymentRequestBrowserTestBase(const std::string& test_file_path); 72 explicit PaymentRequestBrowserTestBase(const std::string& test_file_path);
73 ~PaymentRequestBrowserTestBase() override; 73 ~PaymentRequestBrowserTestBase() override;
74 74
75 void SetUpCommandLine(base::CommandLine* command_line) override;
75 void SetUpOnMainThread() override; 76 void SetUpOnMainThread() override;
76 77
77 void NavigateTo(const std::string& file_path); 78 void NavigateTo(const std::string& file_path);
78 79
79 void SetIncognito(); 80 void SetIncognito();
80 void SetInvalidSsl(); 81 void SetInvalidSsl();
81 82
82 // PaymentRequest::ObserverForTest: 83 // PaymentRequest::ObserverForTest:
83 void OnCanMakePaymentCalled() override; 84 void OnCanMakePaymentCalled() override;
84 void OnNotSupportedError() override; 85 void OnNotSupportedError() override;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 TestChromePaymentRequestDelegate* delegate_; 268 TestChromePaymentRequestDelegate* delegate_;
268 bool is_incognito_; 269 bool is_incognito_;
269 bool is_valid_ssl_; 270 bool is_valid_ssl_;
270 271
271 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); 272 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase);
272 }; 273 };
273 274
274 } // namespace payments 275 } // namespace payments
275 276
276 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ 277 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698