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_ |