| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // Whether the editor textfield/combobox for the given |type| is currently in | 174 // Whether the editor textfield/combobox for the given |type| is currently in |
| 175 // an invalid state. | 175 // an invalid state. |
| 176 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); | 176 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); |
| 177 bool IsEditorComboboxInvalid(autofill::ServerFieldType type); | 177 bool IsEditorComboboxInvalid(autofill::ServerFieldType type); |
| 178 | 178 |
| 179 bool IsPayButtonEnabled(); | 179 bool IsPayButtonEnabled(); |
| 180 | 180 |
| 181 // Sets proper animation delegates and waits for animation to finish. | 181 // Sets proper animation delegates and waits for animation to finish. |
| 182 void WaitForAnimation(); | 182 void WaitForAnimation(); |
| 183 | 183 |
| 184 // Returns the text of the StyledLabel with the specific |view_id| that is a | 184 // Returns the text of the Label or StyledLabel with the specific |view_id| |
| 185 // child of the Payment Request dialog view. | 185 // that is a child of the Payment Request dialog view. |
| 186 const base::string16& GetLabelText(DialogViewID view_id); |
| 186 const base::string16& GetStyledLabelText(DialogViewID view_id); | 187 const base::string16& GetStyledLabelText(DialogViewID view_id); |
| 187 // Returns the error label text associated with a given field |type|. | 188 // Returns the error label text associated with a given field |type|. |
| 188 const base::string16& GetErrorLabelForType(autofill::ServerFieldType type); | 189 const base::string16& GetErrorLabelForType(autofill::ServerFieldType type); |
| 189 | 190 |
| 190 net::EmbeddedTestServer* https_server() { return https_server_.get(); } | 191 net::EmbeddedTestServer* https_server() { return https_server_.get(); } |
| 191 | 192 |
| 192 PaymentRequestDialogView* dialog_view() { return delegate_->dialog_view(); } | 193 PaymentRequestDialogView* dialog_view() { return delegate_->dialog_view(); } |
| 193 | 194 |
| 194 void SetRegionDataLoader(autofill::RegionDataLoader* region_data_loader) { | 195 void SetRegionDataLoader(autofill::RegionDataLoader* region_data_loader) { |
| 195 delegate_->SetRegionDataLoader(region_data_loader); | 196 delegate_->SetRegionDataLoader(region_data_loader); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 TestChromePaymentRequestDelegate* delegate_; | 264 TestChromePaymentRequestDelegate* delegate_; |
| 264 bool is_incognito_; | 265 bool is_incognito_; |
| 265 bool is_valid_ssl_; | 266 bool is_valid_ssl_; |
| 266 | 267 |
| 267 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); | 268 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); |
| 268 }; | 269 }; |
| 269 | 270 |
| 270 } // namespace payments | 271 } // namespace payments |
| 271 | 272 |
| 272 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ | 273 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| OLD | NEW |