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 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_CONTROLLER_TEST_H_
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_CONTROLLER_TEST_H_
8 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
9 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
10 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_content_view_controller.h"
14 } // namespace content
16 class ManagePasswordsUIControllerMock
;
17 class ManagePasswordsBubbleModel
;
19 class ManagePasswordsControllerTest
: public CocoaProfileTest
{
21 ManagePasswordsControllerTest();
22 ~ManagePasswordsControllerTest() override
;
23 void SetUp() override
;
25 ManagePasswordsUIControllerMock
* ui_controller() { return ui_controller_
; }
26 ManagePasswordsBubbleModel
* model();
29 ManagePasswordsUIControllerMock
* ui_controller_
;
30 scoped_ptr
<content::WebContents
> test_web_contents_
;
31 scoped_ptr
<ManagePasswordsBubbleModel
> model_
;
34 // Helper delegate for testing the views of the password management bubble.
35 @interface ContentViewDelegateMock
36 : NSObject
<ManagePasswordsBubbleContentViewDelegate
> {
40 @
property(readonly
, nonatomic
) BOOL dismissed
;
43 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_CONTROLLER_TEST_H_