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

Unified Diff: chrome/browser/ui/views/payments/validating_textfield_unittest.cc

Issue 2881643002: Focus first invalid field of payment request editor (Closed)
Patch Set: Rebase Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/validating_textfield_unittest.cc
diff --git a/chrome/browser/ui/views/payments/validating_textfield_unittest.cc b/chrome/browser/ui/views/payments/validating_textfield_unittest.cc
index 6260c40b5280657f814f8db6b94791d8a248e6d9..f6e4e67795adc7ab6c122f252d86c956987ece80 100644
--- a/chrome/browser/ui/views/payments/validating_textfield_unittest.cc
+++ b/chrome/browser/ui/views/payments/validating_textfield_unittest.cc
@@ -28,11 +28,15 @@ class ValidatingTextfieldTest : public testing::Test {
~TestValidationDelegate() override {}
// ValidationDelegate:
- bool ValidateTextfield(views::Textfield* textfield) override {
+ bool ValidateTextfield(views::Textfield* textfield,
+ bool display_error) override {
// We really don't like textfields with more than 5 characters in them.
return textfield->text().size() <= 5u;
}
- bool ValidateCombobox(views::Combobox* combobox) override { return true; }
+ bool ValidateCombobox(views::Combobox* combobox,
+ bool display_error) override {
+ return true;
+ }
void ComboboxModelChanged(views::Combobox* combobox) override {}
private:

Powered by Google App Engine
This is Rietveld 408576698