OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/mac/mac_util.h" | |
6 #include "base/mac/scoped_nsobject.h" | 5 #include "base/mac/scoped_nsobject.h" |
7 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
8 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/fullscreen.h" | 9 #include "chrome/browser/fullscreen.h" |
11 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" |
12 #import "chrome/browser/ui/cocoa/browser_window_cocoa.h" | 11 #import "chrome/browser/ui/cocoa/browser_window_cocoa.h" |
13 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 12 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
14 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 13 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
15 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 [[[window_ stub] andReturn:nil] delegate]; | 162 [[[window_ stub] andReturn:nil] delegate]; |
164 [[[controller_ stub] andReturn:window_] window]; | 163 [[[controller_ stub] andReturn:window_] window]; |
165 [[window_ expect] orderOut:nil]; | 164 [[window_ expect] orderOut:nil]; |
166 [[window_ expect] close]; | 165 [[window_ expect] close]; |
167 CreateAndCloseBrowserWindow(); | 166 CreateAndCloseBrowserWindow(); |
168 EXPECT_OCMOCK_VERIFY(controller_); | 167 EXPECT_OCMOCK_VERIFY(controller_); |
169 EXPECT_OCMOCK_VERIFY(window_); | 168 EXPECT_OCMOCK_VERIFY(window_); |
170 } | 169 } |
171 | 170 |
172 // TODO(???): test other methods of BrowserWindowCocoa | 171 // TODO(???): test other methods of BrowserWindowCocoa |
OLD | NEW |