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