| 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_INTERACTIVE_UITEST_BASE
_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_INTERACTIVE_UITEST_BASE
_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_INTERACTIVE_UITEST_BASE
_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_INTERACTIVE_UITEST_BASE
_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 content::WebContents* web_contents, | 79 content::WebContents* web_contents, |
| 80 mojo::InterfaceRequest<payments::mojom::PaymentRequest> request); | 80 mojo::InterfaceRequest<payments::mojom::PaymentRequest> request); |
| 81 | 81 |
| 82 // Click on a view from within the dialog and waits for an observed event | 82 // Click on a view from within the dialog and waits for an observed event |
| 83 // to be observed. | 83 // to be observed. |
| 84 void ClickOnDialogViewAndWait(DialogViewID view_id); | 84 void ClickOnDialogViewAndWait(DialogViewID view_id); |
| 85 | 85 |
| 86 // Setting the |value| in the textfield of a given |type|. | 86 // Setting the |value| in the textfield of a given |type|. |
| 87 void SetEditorTextfieldValue(const base::string16& value, | 87 void SetEditorTextfieldValue(const base::string16& value, |
| 88 autofill::ServerFieldType type); | 88 autofill::ServerFieldType type); |
| 89 // Setting the |value| in the combobox of a given |type|. |
| 90 void SetComboboxValue(const base::string16& value, |
| 91 autofill::ServerFieldType type); |
| 89 | 92 |
| 90 // Whether the editor textfield for the given |type| is currently in an | 93 // Whether the editor textfield for the given |type| is currently in an |
| 91 // invalid state. | 94 // invalid state. |
| 92 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); | 95 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); |
| 93 | 96 |
| 94 // Sets proper animation delegates and waits for animation to finish. | 97 // Sets proper animation delegates and waits for animation to finish. |
| 95 void WaitForAnimation(); | 98 void WaitForAnimation(); |
| 96 | 99 |
| 97 // Returns the text of the StyledLabel with the specific |view_id| that is a | 100 // Returns the text of the StyledLabel with the specific |view_id| that is a |
| 98 // child of the Payment Request dialog view. | 101 // child of the Payment Request dialog view. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 std::unique_ptr<net::EmbeddedTestServer> https_server_; | 157 std::unique_ptr<net::EmbeddedTestServer> https_server_; |
| 155 // Weak, owned by the PaymentRequest object. | 158 // Weak, owned by the PaymentRequest object. |
| 156 TestChromePaymentRequestDelegate* delegate_; | 159 TestChromePaymentRequestDelegate* delegate_; |
| 157 | 160 |
| 158 DISALLOW_COPY_AND_ASSIGN(PaymentRequestInteractiveTestBase); | 161 DISALLOW_COPY_AND_ASSIGN(PaymentRequestInteractiveTestBase); |
| 159 }; | 162 }; |
| 160 | 163 |
| 161 } // namespace payments | 164 } // namespace payments |
| 162 | 165 |
| 163 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_INTERACTIVE_UITEST_B
ASE_H_ | 166 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_INTERACTIVE_UITEST_B
ASE_H_ |
| OLD | NEW |