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

Unified Diff: chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views.cc

Issue 1020013003: Add a regression test for the CardUnmaskPrompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EXPECT Created 5 years, 9 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/autofill/card_unmask_prompt_view_tester_views.cc
diff --git a/chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views.cc b/chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b81118dd1ef8bbac884769b3a2b76b2479ac5ee0
--- /dev/null
+++ b/chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views.cc
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views.h"
+
+#include "chrome/browser/ui/views/autofill/card_unmask_prompt_views.h"
+
+namespace autofill {
+
+// static
+scoped_ptr<CardUnmaskPromptViewTester> CardUnmaskPromptViewTester::For(
+ CardUnmaskPromptView* view) {
+ return scoped_ptr<CardUnmaskPromptViewTester>(
+ new CardUnmaskPromptViewTesterViews(
+ static_cast<CardUnmaskPromptViews*>(view)));
+}
+
+// Class that facilitates testing.
+CardUnmaskPromptViewTesterViews::CardUnmaskPromptViewTesterViews(
+ CardUnmaskPromptViews* view)
+ : view_(view) {
+}
+
+CardUnmaskPromptViewTesterViews::~CardUnmaskPromptViewTesterViews() {
+}
+
+void CardUnmaskPromptViewTesterViews::Close() {
+ view_->ClosePrompt();
+}
+
+} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698