OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.h
" | 5 #include "chrome/browser/ui/cocoa/passwords/passwords_bubble_controller.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_window.h" | 12 #include "chrome/browser/ui/browser_window.h" |
13 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 13 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
14 #import "chrome/browser/ui/cocoa/info_bubble_window.h" | 14 #import "chrome/browser/ui/cocoa/info_bubble_window.h" |
15 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_manage_view_c
ontroller.h" | 15 #include "chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.h" |
16 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_
controller.h" | 16 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.h" |
17 #include "chrome/browser/ui/cocoa/passwords/manage_passwords_controller_test.h" | 17 #import "chrome/browser/ui/cocoa/passwords/pending_password_view_controller.h" |
18 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 18 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "testing/gtest_mac.h" | 20 #include "testing/gtest_mac.h" |
21 #include "testing/platform_test.h" | 21 #include "testing/platform_test.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 class ManagePasswordsBubbleControllerTest | 25 class ManagePasswordsBubbleControllerTest |
26 : public ManagePasswordsControllerTest { | 26 : public ManagePasswordsControllerTest { |
27 public: | 27 public: |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 EXPECT_FALSE([window isVisible]); | 62 EXPECT_FALSE([window isVisible]); |
63 } | 63 } |
64 | 64 |
65 TEST_F(ManagePasswordsBubbleControllerTest, ManageStateShouldHaveManageView) { | 65 TEST_F(ManagePasswordsBubbleControllerTest, ManageStateShouldHaveManageView) { |
66 model()->set_state(password_manager::ui::MANAGE_STATE); | 66 model()->set_state(password_manager::ui::MANAGE_STATE); |
67 EXPECT_EQ([ManagePasswordsBubbleManageViewController class], | 67 EXPECT_EQ([ManagePasswordsBubbleManageViewController class], |
68 [[controller() currentController] class]); | 68 [[controller() currentController] class]); |
69 } | 69 } |
70 | 70 |
71 } // namespace | 71 } // namespace |
OLD | NEW |