| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Returns "three-line label" values under |parent_view|. | 142 // Returns "three-line label" values under |parent_view|. |
| 143 std::vector<base::string16> GetThreeLineLabelValues( | 143 std::vector<base::string16> GetThreeLineLabelValues( |
| 144 DialogViewID parent_view_id); | 144 DialogViewID parent_view_id); |
| 145 // Returns the shipping option labels under |parent_view_id|. | 145 // Returns the shipping option labels under |parent_view_id|. |
| 146 std::vector<base::string16> GetShippingOptionLabelValues( | 146 std::vector<base::string16> GetShippingOptionLabelValues( |
| 147 DialogViewID parent_view_id); | 147 DialogViewID parent_view_id); |
| 148 | 148 |
| 149 void OpenCVCPromptWithCVC(const base::string16& cvc); | 149 void OpenCVCPromptWithCVC(const base::string16& cvc); |
| 150 void PayWithCreditCardAndWait(const base::string16& cvc); | 150 void PayWithCreditCardAndWait(const base::string16& cvc); |
| 151 | 151 |
| 152 // Setting the |value| in the textfield of a given |type|. | 152 // Getting/setting the |value| in the textfield of a given |type|. |
| 153 base::string16 GetEditorTextfieldValue(autofill::ServerFieldType type); |
| 153 void SetEditorTextfieldValue(const base::string16& value, | 154 void SetEditorTextfieldValue(const base::string16& value, |
| 154 autofill::ServerFieldType type); | 155 autofill::ServerFieldType type); |
| 155 // Setting the |value| in the combobox of a given |type|. | 156 // Getting/setting the |value| in the combobox of a given |type|. |
| 157 base::string16 GetComboboxValue(autofill::ServerFieldType type); |
| 156 void SetComboboxValue(const base::string16& value, | 158 void SetComboboxValue(const base::string16& value, |
| 157 autofill::ServerFieldType type); | 159 autofill::ServerFieldType type); |
| 158 | 160 |
| 159 // Whether the editor textfield/combobox for the given |type| is currently in | 161 // Whether the editor textfield/combobox for the given |type| is currently in |
| 160 // an invalid state. | 162 // an invalid state. |
| 161 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); | 163 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); |
| 162 bool IsEditorComboboxInvalid(autofill::ServerFieldType type); | 164 bool IsEditorComboboxInvalid(autofill::ServerFieldType type); |
| 163 | 165 |
| 164 bool IsPayButtonEnabled(); | 166 bool IsPayButtonEnabled(); |
| 165 | 167 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 // Weak, owned by the PaymentRequest object. | 241 // Weak, owned by the PaymentRequest object. |
| 240 TestChromePaymentRequestDelegate* delegate_; | 242 TestChromePaymentRequestDelegate* delegate_; |
| 241 bool incognito_for_testing_; | 243 bool incognito_for_testing_; |
| 242 | 244 |
| 243 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); | 245 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); |
| 244 }; | 246 }; |
| 245 | 247 |
| 246 } // namespace payments | 248 } // namespace payments |
| 247 | 249 |
| 248 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ | 250 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| OLD | NEW |