Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.h

Issue 2689363004: [Payments] Add combobox support to editors. (Closed)
Patch Set: re-enable test, addressed comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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/combobox for the given |type| is currently in
91 // invalid state. 94 // an invalid state.
92 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type); 95 bool IsEditorTextfieldInvalid(autofill::ServerFieldType type);
96 bool IsEditorComboboxInvalid(autofill::ServerFieldType type);
93 97
94 // Sets proper animation delegates and waits for animation to finish. 98 // Sets proper animation delegates and waits for animation to finish.
95 void WaitForAnimation(); 99 void WaitForAnimation();
96 100
97 // Returns the text of the StyledLabel with the specific |view_id| that is a 101 // Returns the text of the StyledLabel with the specific |view_id| that is a
98 // child of the Payment Request dialog view. 102 // child of the Payment Request dialog view.
99 const base::string16& GetStyledLabelText(DialogViewID view_id); 103 const base::string16& GetStyledLabelText(DialogViewID view_id);
100 104
101 net::EmbeddedTestServer* https_server() { return https_server_.get(); } 105 net::EmbeddedTestServer* https_server() { return https_server_.get(); }
102 106
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 std::unique_ptr<net::EmbeddedTestServer> https_server_; 158 std::unique_ptr<net::EmbeddedTestServer> https_server_;
155 // Weak, owned by the PaymentRequest object. 159 // Weak, owned by the PaymentRequest object.
156 TestChromePaymentRequestDelegate* delegate_; 160 TestChromePaymentRequestDelegate* delegate_;
157 161
158 DISALLOW_COPY_AND_ASSIGN(PaymentRequestInteractiveTestBase); 162 DISALLOW_COPY_AND_ASSIGN(PaymentRequestInteractiveTestBase);
159 }; 163 };
160 164
161 } // namespace payments 165 } // namespace payments
162 166
163 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_INTERACTIVE_UITEST_B ASE_H_ 167 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_INTERACTIVE_UITEST_B ASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698