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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/save_card_bubble_view_unittest.mm

Issue 1540423004: Add card details and legal message to Android save credit card infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Edits Created 4 years, 11 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
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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "chrome/browser/ui/autofill/save_card_bubble_controller.h" 6 #include "chrome/browser/ui/autofill/save_card_bubble_controller.h"
7 #import "chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.h" 7 #import "chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.h"
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
9 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 9 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
10 #include "components/autofill/core/browser/legal_message_line.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 12
12 namespace autofill { 13 namespace autofill {
13 14
14 namespace { 15 namespace {
15 16
16 class TestSaveCardBubbleController : public SaveCardBubbleController { 17 class TestSaveCardBubbleController : public SaveCardBubbleController {
17 public: 18 public:
18 static scoped_ptr<TestSaveCardBubbleController> CreateForTesting() { 19 static scoped_ptr<TestSaveCardBubbleController> CreateForTesting() {
19 return scoped_ptr<TestSaveCardBubbleController>( 20 return scoped_ptr<TestSaveCardBubbleController>(
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // This will show the SaveCardBubbleViewCocoa. 75 // This will show the SaveCardBubbleViewCocoa.
75 SaveCardBubbleViewBridge* bridge = new SaveCardBubbleViewBridge( 76 SaveCardBubbleViewBridge* bridge = new SaveCardBubbleViewBridge(
76 bubble_controller.get(), browser_window_controller_); 77 bubble_controller.get(), browser_window_controller_);
77 78
78 // This sends -close to the SaveCardBubbleViewCocoa, and causes bridge to 79 // This sends -close to the SaveCardBubbleViewCocoa, and causes bridge to
79 // delete itself. 80 // delete itself.
80 bridge->Hide(); 81 bridge->Hide();
81 } 82 }
82 83
83 } // namespace autofill 84 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698