1 // Copyright 2014 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/cocoa/passwords/manage_passwords_controller_test.h"
7 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
8 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h"
9 #include "content/public/test/web_contents_tester.h"
11 ManagePasswordsControllerTest::
12 ManagePasswordsControllerTest() {
15 ManagePasswordsControllerTest::
16 ~ManagePasswordsControllerTest() {
19 void ManagePasswordsControllerTest::SetUp() {
20 CocoaProfileTest::SetUp();
21 // Create the test UIController here so that it's bound to and owned by
22 // |test_web_contents_| and therefore accessible to the model.
23 test_web_contents_.reset(
24 content::WebContentsTester::CreateTestWebContents(profile(), NULL));
26 new ManagePasswordsUIControllerMock(test_web_contents_.get());
29 ManagePasswordsBubbleModel*
30 ManagePasswordsControllerTest::model() {
32 model_.reset(new ManagePasswordsBubbleModel(test_web_contents_.get()));
37 @implementation ContentViewDelegateMock
39 @synthesize dismissed = _dismissed;
41 - (void)viewShouldDismiss {