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

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

Issue 2805263003: [Payments] Selecting incomplete items will open editors (Closed)
Patch Set: fix ios test for realz Created 3 years, 8 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Returns "three-line label" values under |parent_view|. 144 // Returns "three-line label" values under |parent_view|.
145 std::vector<base::string16> GetThreeLineLabelValues( 145 std::vector<base::string16> GetThreeLineLabelValues(
146 DialogViewID parent_view_id); 146 DialogViewID parent_view_id);
147 // Returns the shipping option labels under |parent_view_id|. 147 // Returns the shipping option labels under |parent_view_id|.
148 std::vector<base::string16> GetShippingOptionLabelValues( 148 std::vector<base::string16> GetShippingOptionLabelValues(
149 DialogViewID parent_view_id); 149 DialogViewID parent_view_id);
150 150
151 void OpenCVCPromptWithCVC(const base::string16& cvc); 151 void OpenCVCPromptWithCVC(const base::string16& cvc);
152 void PayWithCreditCardAndWait(const base::string16& cvc); 152 void PayWithCreditCardAndWait(const base::string16& cvc);
153 153
154 // Setting the |value| in the textfield of a given |type|. 154 // Getting/setting the |value| in the textfield of a given |type|.
155 base::string16 GetEditorTextfieldValue(autofill::ServerFieldType type);
155 void SetEditorTextfieldValue(const base::string16& value, 156 void SetEditorTextfieldValue(const base::string16& value,
156 autofill::ServerFieldType type); 157 autofill::ServerFieldType type);
157 // Setting the |value| in the combobox of a given |type|. 158 // Getting/setting the |value| in the combobox of a given |type|.
159 base::string16 GetComboboxValue(autofill::ServerFieldType type);
158 void SetComboboxValue(const base::string16& value, 160 void SetComboboxValue(const base::string16& value,
159 autofill::ServerFieldType type); 161 autofill::ServerFieldType type);
160 162
161 // Whether the editor textfield/combobox for the given |type| is currently in 163 // Whether the editor textfield/combobox for the given |type| is currently in
162 // an invalid state. 164 // an invalid state.
163 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); 165 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type);
164 bool IsEditorComboboxInvalid(autofill::ServerFieldType type); 166 bool IsEditorComboboxInvalid(autofill::ServerFieldType type);
165 167
166 bool IsPayButtonEnabled(); 168 bool IsPayButtonEnabled();
167 169
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Weak, owned by the PaymentRequest object. 244 // Weak, owned by the PaymentRequest object.
243 TestChromePaymentRequestDelegate* delegate_; 245 TestChromePaymentRequestDelegate* delegate_;
244 bool incognito_for_testing_; 246 bool incognito_for_testing_;
245 247
246 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); 248 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase);
247 }; 249 };
248 250
249 } // namespace payments 251 } // namespace payments
250 252
251 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ 253 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698