Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / views / autofill / card_unmask_prompt_view_tester_views.cc
blobb81118dd1ef8bbac884769b3a2b76b2479ac5ee0
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.
5 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views.h"
7 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_views.h"
9 namespace autofill {
11 // static
12 scoped_ptr<CardUnmaskPromptViewTester> CardUnmaskPromptViewTester::For(
13 CardUnmaskPromptView* view) {
14 return scoped_ptr<CardUnmaskPromptViewTester>(
15 new CardUnmaskPromptViewTesterViews(
16 static_cast<CardUnmaskPromptViews*>(view)));
19 // Class that facilitates testing.
20 CardUnmaskPromptViewTesterViews::CardUnmaskPromptViewTesterViews(
21 CardUnmaskPromptViews* view)
22 : view_(view) {
25 CardUnmaskPromptViewTesterViews::~CardUnmaskPromptViewTesterViews() {
28 void CardUnmaskPromptViewTesterViews::Close() {
29 view_->ClosePrompt();
32 } // namespace autofill