OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 |
| 10 namespace autofill { |
| 11 |
| 12 class CardUnmaskPromptView; |
| 13 |
| 14 // Functionality that helps to test a CardUnmaskPromptView. |
| 15 class CardUnmaskPromptViewTester { |
| 16 public: |
| 17 // Gets a CardUnmaskPromptViewTester for |view|. |
| 18 static scoped_ptr<CardUnmaskPromptViewTester> For(CardUnmaskPromptView* view); |
| 19 |
| 20 virtual ~CardUnmaskPromptViewTester() {} |
| 21 |
| 22 // Simulates the user pressing 'Cancel' to abort the dialog. |
| 23 virtual void CancelForTesting() = 0; |
| 24 }; |
| 25 |
| 26 } // namespace autofill |
| 27 |
| 28 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ |
OLD | NEW |