Elim cr-checkbox
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / passwords / manage_passwords_controller_test.h
blob4a471d6ceffdf48678257ca047ed7e1b68528691
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"
12 namespace content {
13 class WebContents;
14 } // namespace content
16 class ManagePasswordsUIControllerMock;
17 class ManagePasswordsBubbleModel;
19 class ManagePasswordsControllerTest : public CocoaProfileTest {
20 public:
21 ManagePasswordsControllerTest();
22 ~ManagePasswordsControllerTest() override;
23 void SetUp() override;
25 ManagePasswordsUIControllerMock* ui_controller() { return ui_controller_; }
26 ManagePasswordsBubbleModel* model();
28 private:
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> {
37 @private
38 BOOL _dismissed;
40 @property(readonly, nonatomic) BOOL dismissed;
41 @end
43 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_CONTROLLER_TEST_H_