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

Side by Side Diff: chrome/browser/cocoa/content_exceptions_window_controller_unittest.mm

Issue 3828009: Move scoped_nsdisable_screen_update from base to app/mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/cocoa/content_exceptions_window_controller.h" 5 #import "chrome/browser/cocoa/content_exceptions_window_controller.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #import "base/scoped_nsobject.h" 9 #import "base/scoped_nsobject.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
11 #include "chrome/browser/cocoa/browser_test_helper.h" 11 #include "chrome/browser/cocoa/browser_test_helper.h"
12 #include "chrome/browser/cocoa/cocoa_test_helper.h" 12 #include "chrome/browser/cocoa/cocoa_test_helper.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "testing/platform_test.h" 14 #include "testing/platform_test.h"
15 15
16 namespace { 16 namespace {
17 17
18 void ProcessEvents() { 18 void ProcessEvents() {
19 for (;;) { 19 for (;;) {
20 base::ScopedNSAutoreleasePool pool; 20 base::mac::ScopedNSAutoreleasePool pool;
21 NSEvent* next_event = [NSApp nextEventMatchingMask:NSAnyEventMask 21 NSEvent* next_event = [NSApp nextEventMatchingMask:NSAnyEventMask
22 untilDate:nil 22 untilDate:nil
23 inMode:NSDefaultRunLoopMode 23 inMode:NSDefaultRunLoopMode
24 dequeue:YES]; 24 dequeue:YES];
25 if (!next_event) 25 if (!next_event)
26 break; 26 break;
27 [NSApp sendEvent:next_event]; 27 [NSApp sendEvent:next_event];
28 } 28 }
29 } 29 }
30 30
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 HostContentSettingsMap::SettingsForOneType settings; 243 HostContentSettingsMap::SettingsForOneType settings;
244 settingsMap_->GetSettingsForOneType(CONTENT_SETTINGS_TYPE_COOKIES, 244 settingsMap_->GetSettingsForOneType(CONTENT_SETTINGS_TYPE_COOKIES,
245 "", 245 "",
246 &settings); 246 &settings);
247 EXPECT_EQ(1u, settings.size()); 247 EXPECT_EQ(1u, settings.size());
248 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, settings[0].second); 248 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, settings[0].second);
249 } 249 }
250 250
251 251
252 } // namespace 252 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/cocoa_test_helper.mm ('k') | chrome/browser/cocoa/html_dialog_window_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698