OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 namespace content { | |
11 class WebContents; | |
12 } | |
13 | |
14 namespace autofill { | 10 namespace autofill { |
15 | 11 |
16 class CardUnmaskPromptView; | 12 class CardUnmaskPromptView; |
17 | 13 |
18 // Functionality that helps to test an AutofillCardUnmaskPromptView. | 14 // Functionality that helps to test an AutofillCardUnmaskPromptView. |
19 class CardUnmaskPromptViewTester { | 15 class CardUnmaskPromptViewTester { |
20 public: | 16 public: |
21 // Gets a AutofillCardUnmaskPromptViewTester for |view|. | 17 // Gets a AutofillCardUnmaskPromptViewTester for |view|. |
22 static std::unique_ptr<CardUnmaskPromptViewTester> For( | 18 static std::unique_ptr<CardUnmaskPromptViewTester> For( |
23 CardUnmaskPromptView* view); | 19 CardUnmaskPromptView* view); |
24 | 20 |
25 virtual ~CardUnmaskPromptViewTester() {} | 21 virtual ~CardUnmaskPromptViewTester() {} |
26 | 22 |
27 virtual void Close() = 0; | 23 virtual void Close() = 0; |
28 }; | 24 }; |
29 | 25 |
30 } // namespace autofill | 26 } // namespace autofill |
31 | 27 |
32 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ | 28 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ |
OLD | NEW |