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

Unified Diff: chrome/browser/ui/autofill/card_unmask_prompt_view_tester.h

Issue 904613006: Autofill: First step toward CVC unmask prompt dialog on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leak detected in browser test. Created 5 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
Index: chrome/browser/ui/autofill/card_unmask_prompt_view_tester.h
diff --git a/chrome/browser/ui/autofill/card_unmask_prompt_view_tester.h b/chrome/browser/ui/autofill/card_unmask_prompt_view_tester.h
new file mode 100644
index 0000000000000000000000000000000000000000..6b74214077dc11e424242b4b0cab8af715ce96a4
--- /dev/null
+++ b/chrome/browser/ui/autofill/card_unmask_prompt_view_tester.h
@@ -0,0 +1,28 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_
+#define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_
+
+#include "base/memory/scoped_ptr.h"
+
+namespace autofill {
+
+class CardUnmaskPromptView;
+
+// Functionality that helps to test a CardUnmaskPromptView.
+class CardUnmaskPromptViewTester {
+ public:
+ // Gets a CardUnmaskPromptViewTester for |view|.
+ static scoped_ptr<CardUnmaskPromptViewTester> For(CardUnmaskPromptView* view);
+
+ virtual ~CardUnmaskPromptViewTester() {}
+
+ // Simulates the user pressing 'Cancel' to abort the dialog.
+ virtual void CancelForTesting() = 0;
+};
+
+} // namespace autofill
+
+#endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_

Powered by Google App Engine
This is Rietveld 408576698