| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_CONTROLLER_TEST_H_ | |
| 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_CONTROLLER_TEST_H_ | |
| 7 | |
| 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" | |
| 11 | |
| 12 namespace content { | |
| 13 class WebContents; | |
| 14 } // namespace content | |
| 15 | |
| 16 class ManagePasswordsUIControllerMock; | |
| 17 class ManagePasswordsBubbleModel; | |
| 18 | |
| 19 class ManagePasswordsControllerTest : public CocoaProfileTest { | |
| 20 public: | |
| 21 ManagePasswordsControllerTest(); | |
| 22 ~ManagePasswordsControllerTest() override; | |
| 23 void SetUp() override; | |
| 24 | |
| 25 ManagePasswordsUIControllerMock* ui_controller() { return ui_controller_; } | |
| 26 ManagePasswordsBubbleModel* model(); | |
| 27 | |
| 28 private: | |
| 29 ManagePasswordsUIControllerMock* ui_controller_; | |
| 30 scoped_ptr<content::WebContents> test_web_contents_; | |
| 31 scoped_ptr<ManagePasswordsBubbleModel> model_; | |
| 32 }; | |
| 33 | |
| 34 // Helper delegate for testing the views of the password management bubble. | |
| 35 @interface ContentViewDelegateMock | |
| 36 : NSObject<ManagePasswordsBubbleContentViewDelegate> { | |
| 37 @private | |
| 38 BOOL _dismissed; | |
| 39 } | |
| 40 @property(readonly, nonatomic) BOOL dismissed; | |
| 41 @end | |
| 42 | |
| 43 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_CONTROLLER_TEST_H_ | |
| OLD | NEW |