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 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views.
h" | 5 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views.
h" |
6 | 6 |
7 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_views.h" | 7 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_views.h" |
8 | 8 |
9 namespace autofill { | 9 namespace autofill { |
10 | 10 |
11 // static | 11 // static |
12 scoped_ptr<CardUnmaskPromptViewTester> CardUnmaskPromptViewTester::For( | 12 std::unique_ptr<CardUnmaskPromptViewTester> CardUnmaskPromptViewTester::For( |
13 CardUnmaskPromptView* view) { | 13 CardUnmaskPromptView* view) { |
14 return scoped_ptr<CardUnmaskPromptViewTester>( | 14 return std::unique_ptr<CardUnmaskPromptViewTester>( |
15 new CardUnmaskPromptViewTesterViews( | 15 new CardUnmaskPromptViewTesterViews( |
16 static_cast<CardUnmaskPromptViews*>(view))); | 16 static_cast<CardUnmaskPromptViews*>(view))); |
17 } | 17 } |
18 | 18 |
19 // Class that facilitates testing. | 19 // Class that facilitates testing. |
20 CardUnmaskPromptViewTesterViews::CardUnmaskPromptViewTesterViews( | 20 CardUnmaskPromptViewTesterViews::CardUnmaskPromptViewTesterViews( |
21 CardUnmaskPromptViews* view) | 21 CardUnmaskPromptViews* view) |
22 : view_(view) { | 22 : view_(view) { |
23 } | 23 } |
24 | 24 |
25 CardUnmaskPromptViewTesterViews::~CardUnmaskPromptViewTesterViews() { | 25 CardUnmaskPromptViewTesterViews::~CardUnmaskPromptViewTesterViews() { |
26 } | 26 } |
27 | 27 |
28 void CardUnmaskPromptViewTesterViews::Close() { | 28 void CardUnmaskPromptViewTesterViews::Close() { |
29 view_->ClosePrompt(); | 29 view_->ClosePrompt(); |
30 } | 30 } |
31 | 31 |
32 } // namespace autofill | 32 } // namespace autofill |
OLD | NEW |