Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_cocoa_unittest.mm

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 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/scoped_nsobject.h" 5 #include "base/scoped_nsobject.h"
6 #include "base/scoped_ptr.h" 6 #include "base/scoped_ptr.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/bookmarks/bookmark_utils.h" 8 #include "chrome/browser/bookmarks/bookmark_utils.h"
9 #include "chrome/browser/ui/cocoa/browser_test_helper.h" 9 #include "chrome/browser/ui/cocoa/browser_test_helper.h"
10 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" 10 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h"
11 #include "chrome/browser/ui/cocoa/browser_window_controller.h" 11 #include "chrome/browser/ui/cocoa/browser_window_controller.h"
12 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" 12 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
13 #include "chrome/common/notification_type.h" 13 #include "content/common/notification_type.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 // A BrowserWindowCocoa that goes PONG when 16 // A BrowserWindowCocoa that goes PONG when
17 // BOOKMARK_BAR_VISIBILITY_PREF_CHANGED is sent. This is so we can be 17 // BOOKMARK_BAR_VISIBILITY_PREF_CHANGED is sent. This is so we can be
18 // sure we are observing it. 18 // sure we are observing it.
19 class BrowserWindowCocoaPong : public BrowserWindowCocoa { 19 class BrowserWindowCocoaPong : public BrowserWindowCocoa {
20 public: 20 public:
21 BrowserWindowCocoaPong(Browser* browser, 21 BrowserWindowCocoaPong(Browser* browser,
22 BrowserWindowController* controller) : 22 BrowserWindowController* controller) :
23 BrowserWindowCocoa(browser, controller, [controller window]) { 23 BrowserWindowCocoa(browser, controller, [controller window]) {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 EXPECT_FALSE(bwc->IsFullscreen()); 112 EXPECT_FALSE(bwc->IsFullscreen());
113 bwc->SetFullscreen(true); 113 bwc->SetFullscreen(true);
114 EXPECT_TRUE(bwc->IsFullscreen()); 114 EXPECT_TRUE(bwc->IsFullscreen());
115 bwc->SetFullscreen(false); 115 bwc->SetFullscreen(false);
116 EXPECT_FALSE(bwc->IsFullscreen()); 116 EXPECT_FALSE(bwc->IsFullscreen());
117 [fake_controller close]; 117 [fake_controller close];
118 } 118 }
119 119
120 // TODO(???): test other methods of BrowserWindowCocoa 120 // TODO(???): test other methods of BrowserWindowCocoa
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698