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

Side by Side Diff: webkit/tools/test_shell/test_shell_platform_delegate_mac.mm

Issue 1521010: Eliminate WebCore include paths when compiling Chromium code.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 // #include <Carbon/Carbon.h> 7 // #include <Carbon/Carbon.h>
8 // #include <ApplicationServices/ApplicationServices.h> 8 // #include <ApplicationServices/ApplicationServices.h>
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #import <objc/objc-runtime.h> 10 #import <objc/objc-runtime.h>
11 #include <mach/task.h> 11 #include <mach/task.h>
12 12
13 #include "base/chrome_application_mac.h" 13 #include "base/chrome_application_mac.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "third_party/WebKit/WebKit/mac/WebCoreSupport/WebSystemInterface.h"
16 #include "webkit/tools/test_shell/test_shell.h" 17 #include "webkit/tools/test_shell/test_shell.h"
17 #include "webkit/tools/test_shell/test_shell_platform_delegate.h" 18 #include "webkit/tools/test_shell/test_shell_platform_delegate.h"
18 #include "webkit/tools/test_shell/test_shell_switches.h" 19 #include "webkit/tools/test_shell/test_shell_switches.h"
19 #include "WebSystemInterface.h"
20 20
21 static NSAutoreleasePool *gTestShellAutoreleasePool = nil; 21 static NSAutoreleasePool *gTestShellAutoreleasePool = nil;
22 22
23 static void SetDefaultsToLayoutTestValues(void) { 23 static void SetDefaultsToLayoutTestValues(void) {
24 // So we can match the WebKit layout tests, we want to force a bunch of 24 // So we can match the WebKit layout tests, we want to force a bunch of
25 // preferences that control appearance to match. 25 // preferences that control appearance to match.
26 // (We want to do this as early as possible in application startup so 26 // (We want to do this as early as possible in application startup so
27 // the settings are in before any higher layers could cache values.) 27 // the settings are in before any higher layers could cache values.)
28 28
29 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; 29 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 // If we die during tests, we don't want to be spamming the user's crash 193 // If we die during tests, we don't want to be spamming the user's crash
194 // reporter. Set our exception port to null and add signal handlers. 194 // reporter. Set our exception port to null and add signal handlers.
195 // Both of these are necessary to avoid the crash reporter. Although, we do 195 // Both of these are necessary to avoid the crash reporter. Although, we do
196 // still seem to be missing some cases. 196 // still seem to be missing some cases.
197 if (!parsed_command_line.HasSwitch(test_shell::kGDB)) { 197 if (!parsed_command_line.HasSwitch(test_shell::kGDB)) {
198 task_set_exception_ports(mach_task_self(), EXC_MASK_ALL, MACH_PORT_NULL, 198 task_set_exception_ports(mach_task_self(), EXC_MASK_ALL, MACH_PORT_NULL,
199 EXCEPTION_DEFAULT, THREAD_STATE_NONE); 199 EXCEPTION_DEFAULT, THREAD_STATE_NONE);
200 } 200 }
201 } 201 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_main.cc ('k') | webkit/tools/webcore_unit_tests/BMPImageDecoder_unittest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698