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 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.h" | 5 #import "chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.h" |
6 | 6 |
| 7 #include <memory> |
| 8 |
7 #include "base/mac/foundation_util.h" | 9 #include "base/mac/foundation_util.h" |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.h" | 12 #include "chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.h" |
12 #import "chrome/browser/ui/cocoa/passwords/password_item_views.h" | 13 #import "chrome/browser/ui/cocoa/passwords/password_item_views.h" |
13 #import "chrome/browser/ui/cocoa/passwords/passwords_list_view_controller.h" | 14 #import "chrome/browser/ui/cocoa/passwords/passwords_list_view_controller.h" |
14 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 15 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
15 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" | 16 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "testing/gtest_mac.h" | 18 #include "testing/gtest_mac.h" |
18 | 19 |
19 using testing::Return; | 20 using testing::Return; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 SetUpManageState(); | 124 SetUpManageState(); |
124 EXPECT_CALL(*ui_controller(), NavigateToPasswordManagerSettingsPage()) | 125 EXPECT_CALL(*ui_controller(), NavigateToPasswordManagerSettingsPage()) |
125 .Times(0); | 126 .Times(0); |
126 [controller() bubbleWillDisappear]; | 127 [controller() bubbleWillDisappear]; |
127 [delegate() setModel:nil]; | 128 [delegate() setModel:nil]; |
128 [controller().doneButton performClick:nil]; | 129 [controller().doneButton performClick:nil]; |
129 [controller().manageButton performClick:nil]; | 130 [controller().manageButton performClick:nil]; |
130 } | 131 } |
131 | 132 |
132 } // namespace | 133 } // namespace |
OLD | NEW |