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 "base/memory/scoped_ptr.h" | 8 #include <memory> |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 class WebContents; | 11 class WebContents; |
12 } | 12 } |
13 | 13 |
14 namespace autofill { | 14 namespace autofill { |
15 | 15 |
16 class CardUnmaskPromptView; | 16 class CardUnmaskPromptView; |
17 | 17 |
18 // Functionality that helps to test an AutofillCardUnmaskPromptView. | 18 // Functionality that helps to test an AutofillCardUnmaskPromptView. |
19 class CardUnmaskPromptViewTester { | 19 class CardUnmaskPromptViewTester { |
20 public: | 20 public: |
21 // Gets a AutofillCardUnmaskPromptViewTester for |view|. | 21 // Gets a AutofillCardUnmaskPromptViewTester for |view|. |
22 static scoped_ptr<CardUnmaskPromptViewTester> For(CardUnmaskPromptView* view); | 22 static std::unique_ptr<CardUnmaskPromptViewTester> For( |
| 23 CardUnmaskPromptView* view); |
23 | 24 |
24 virtual ~CardUnmaskPromptViewTester() {} | 25 virtual ~CardUnmaskPromptViewTester() {} |
25 | 26 |
26 virtual void Close() = 0; | 27 virtual void Close() = 0; |
27 }; | 28 }; |
28 | 29 |
29 } // namespace autofill | 30 } // namespace autofill |
30 | 31 |
31 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ | 32 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_TESTER_H_ |
OLD | NEW |