Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views.cc

Issue 1020013003: Add a regression test for the CardUnmaskPrompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EXPECT Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698