| 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 <iosfwd> | 8 #include <iosfwd> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 void PayWithCreditCardAndWait(const base::string16& cvc); | 181 void PayWithCreditCardAndWait(const base::string16& cvc); |
| 182 | 182 |
| 183 // Getting/setting the |value| in the textfield of a given |type|. | 183 // Getting/setting the |value| in the textfield of a given |type|. |
| 184 base::string16 GetEditorTextfieldValue(autofill::ServerFieldType type); | 184 base::string16 GetEditorTextfieldValue(autofill::ServerFieldType type); |
| 185 void SetEditorTextfieldValue(const base::string16& value, | 185 void SetEditorTextfieldValue(const base::string16& value, |
| 186 autofill::ServerFieldType type); | 186 autofill::ServerFieldType type); |
| 187 // Getting/setting the |value| in the combobox of a given |type|. | 187 // Getting/setting the |value| in the combobox of a given |type|. |
| 188 base::string16 GetComboboxValue(autofill::ServerFieldType type); | 188 base::string16 GetComboboxValue(autofill::ServerFieldType type); |
| 189 void SetComboboxValue(const base::string16& value, | 189 void SetComboboxValue(const base::string16& value, |
| 190 autofill::ServerFieldType type); | 190 autofill::ServerFieldType type); |
| 191 // Special case for the billing address since the interesting value is not |
| 192 // the visible one accessible directly on the base combobox model. |
| 193 void SelectBillingAddress(const std::string& billing_address_id); |
| 191 | 194 |
| 192 // Whether the editor textfield/combobox for the given |type| is currently in | 195 // Whether the editor textfield/combobox for the given |type| is currently in |
| 193 // an invalid state. | 196 // an invalid state. |
| 194 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); | 197 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); |
| 195 bool IsEditorComboboxInvalid(autofill::ServerFieldType type); | 198 bool IsEditorComboboxInvalid(autofill::ServerFieldType type); |
| 196 | 199 |
| 197 bool IsPayButtonEnabled(); | 200 bool IsPayButtonEnabled(); |
| 198 | 201 |
| 199 // Sets proper animation delegates and waits for animation to finish. | 202 // Sets proper animation delegates and waits for animation to finish. |
| 200 void WaitForAnimation(); | 203 void WaitForAnimation(); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); | 267 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); |
| 265 }; | 268 }; |
| 266 | 269 |
| 267 } // namespace payments | 270 } // namespace payments |
| 268 | 271 |
| 269 std::ostream& operator<<( | 272 std::ostream& operator<<( |
| 270 std::ostream& out, | 273 std::ostream& out, |
| 271 payments::PaymentRequestBrowserTestBase::DialogEvent event); | 274 payments::PaymentRequestBrowserTestBase::DialogEvent event); |
| 272 | 275 |
| 273 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ | 276 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| OLD | NEW |