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

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

Issue 2715533002: [Payments] Add error messages to credit card editor. (Closed)
Patch Set: clean 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc
diff --git a/chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc b/chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc
index 02f114e78f49f0b4a2e6a24c454821a7b36b5385..991adf435057ff391cf3a807b5bf3a3354b834c6 100644
--- a/chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc
+++ b/chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.cc
@@ -30,6 +30,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/test/ui_controls.h"
#include "ui/gfx/animation/test_animation_delegate.h"
+#include "ui/views/controls/label.h"
#include "ui/views/controls/styled_label.h"
namespace payments {
@@ -243,6 +244,14 @@ const base::string16& PaymentRequestInteractiveTestBase::GetStyledLabelText(
return static_cast<views::StyledLabel*>(view)->text();
}
+const base::string16& PaymentRequestInteractiveTestBase::GetErrorLabelForType(
+ autofill::ServerFieldType type) {
+ views::View* view = dialog_view()->GetViewByID(
+ static_cast<int>(DialogViewID::ERROR_LABEL_OFFSET) + type);
+ DCHECK(view);
+ return static_cast<views::Label*>(view)->text();
+}
+
PaymentRequestInteractiveTestBase::DialogEventObserver::DialogEventObserver(
PaymentRequestInteractiveTestBase::DialogEvent event)
: event_(event), seen_(false) {}
« no previous file with comments | « chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698