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

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

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (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 16 matching lines...) Expand all
27 27
28 namespace autofill { 28 namespace autofill {
29 class AutofillProfile; 29 class AutofillProfile;
30 class CreditCard; 30 class CreditCard;
31 } 31 }
32 32
33 namespace content { 33 namespace content {
34 class WebContents; 34 class WebContents;
35 } // namespace content 35 } // namespace content
36 36
37 namespace service_manager {
38 struct BindSourceInfo;
39 }
40
37 namespace views { 41 namespace views {
38 class Widget; 42 class Widget;
39 } 43 }
40 44
41 namespace payments { 45 namespace payments {
42 46
43 enum class DialogViewID; 47 enum class DialogViewID;
44 48
45 ACTION_P(QuitMessageLoop, loop) { 49 ACTION_P(QuitMessageLoop, loop) {
46 loop->Quit(); 50 loop->Quit();
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // Adds the various models to the database, waiting until the personal data 133 // Adds the various models to the database, waiting until the personal data
130 // manager notifies that they are added. 134 // manager notifies that they are added.
131 // NOTE: If no use_count is specified on the models and multiple items are 135 // NOTE: If no use_count is specified on the models and multiple items are
132 // inserted, the order in which they are returned is undefined, since they 136 // inserted, the order in which they are returned is undefined, since they
133 // are added close to each other. 137 // are added close to each other.
134 void AddAutofillProfile(const autofill::AutofillProfile& profile); 138 void AddAutofillProfile(const autofill::AutofillProfile& profile);
135 void AddCreditCard(const autofill::CreditCard& card); 139 void AddCreditCard(const autofill::CreditCard& card);
136 140
137 void CreatePaymentRequestForTest( 141 void CreatePaymentRequestForTest(
138 content::WebContents* web_contents, 142 content::WebContents* web_contents,
139 mojo::InterfaceRequest<payments::mojom::PaymentRequest> request); 143 const service_manager::BindSourceInfo& source_info,
144 payments::mojom::PaymentRequestRequest request);
140 145
141 // Click on a view from within the dialog and waits for an observed event 146 // Click on a view from within the dialog and waits for an observed event
142 // to be observed. 147 // to be observed.
143 void ClickOnDialogViewAndWait(DialogViewID view_id, 148 void ClickOnDialogViewAndWait(DialogViewID view_id,
144 bool wait_for_animation = true); 149 bool wait_for_animation = true);
145 void ClickOnDialogViewAndWait(views::View* view, 150 void ClickOnDialogViewAndWait(views::View* view,
146 bool wait_for_animation = true); 151 bool wait_for_animation = true);
147 void ClickOnChildInListViewAndWait(int child_index, 152 void ClickOnChildInListViewAndWait(int child_index,
148 int total_num_children, 153 int total_num_children,
149 DialogViewID list_view_id); 154 DialogViewID list_view_id);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 TestChromePaymentRequestDelegate* delegate_; 263 TestChromePaymentRequestDelegate* delegate_;
259 bool is_incognito_; 264 bool is_incognito_;
260 bool is_valid_ssl_; 265 bool is_valid_ssl_;
261 266
262 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); 267 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase);
263 }; 268 };
264 269
265 } // namespace payments 270 } // namespace payments
266 271
267 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ 272 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698