| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 void PayWithCreditCardAndWait(const base::string16& cvc); | 166 void PayWithCreditCardAndWait(const base::string16& cvc); |
| 167 | 167 |
| 168 // Getting/setting the |value| in the textfield of a given |type|. | 168 // Getting/setting the |value| in the textfield of a given |type|. |
| 169 base::string16 GetEditorTextfieldValue(autofill::ServerFieldType type); | 169 base::string16 GetEditorTextfieldValue(autofill::ServerFieldType type); |
| 170 void SetEditorTextfieldValue(const base::string16& value, | 170 void SetEditorTextfieldValue(const base::string16& value, |
| 171 autofill::ServerFieldType type); | 171 autofill::ServerFieldType type); |
| 172 // Getting/setting the |value| in the combobox of a given |type|. | 172 // Getting/setting the |value| in the combobox of a given |type|. |
| 173 base::string16 GetComboboxValue(autofill::ServerFieldType type); | 173 base::string16 GetComboboxValue(autofill::ServerFieldType type); |
| 174 void SetComboboxValue(const base::string16& value, | 174 void SetComboboxValue(const base::string16& value, |
| 175 autofill::ServerFieldType type); | 175 autofill::ServerFieldType type); |
| 176 // Special case for the billing address since the interesting value is not |
| 177 // the visible one accessible directly on the base combobox model. |
| 178 void SelectBillingAddress(const std::string& billing_address_id); |
| 176 | 179 |
| 177 // Whether the editor textfield/combobox for the given |type| is currently in | 180 // Whether the editor textfield/combobox for the given |type| is currently in |
| 178 // an invalid state. | 181 // an invalid state. |
| 179 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); | 182 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); |
| 180 bool IsEditorComboboxInvalid(autofill::ServerFieldType type); | 183 bool IsEditorComboboxInvalid(autofill::ServerFieldType type); |
| 181 | 184 |
| 182 bool IsPayButtonEnabled(); | 185 bool IsPayButtonEnabled(); |
| 183 | 186 |
| 184 // Sets proper animation delegates and waits for animation to finish. | 187 // Sets proper animation delegates and waits for animation to finish. |
| 185 void WaitForAnimation(); | 188 void WaitForAnimation(); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 TestChromePaymentRequestDelegate* delegate_; | 270 TestChromePaymentRequestDelegate* delegate_; |
| 268 bool is_incognito_; | 271 bool is_incognito_; |
| 269 bool is_valid_ssl_; | 272 bool is_valid_ssl_; |
| 270 | 273 |
| 271 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); | 274 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); |
| 272 }; | 275 }; |
| 273 | 276 |
| 274 } // namespace payments | 277 } // namespace payments |
| 275 | 278 |
| 276 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ | 279 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| OLD | NEW |