| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/message_pump_mac.h" | 15 #include "base/message_pump_mac.h" |
| 16 #import "base/test/mock_chrome_application_mac.h" | 16 #import "base/test/mock_chrome_application_mac.h" |
| 17 #include "webkit/tools/test_shell/test_shell.h" | 17 #include "webkit/tools/test_shell/test_shell.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 // If we die during tests, we don't want to be spamming the user's crash | 188 // If we die during tests, we don't want to be spamming the user's crash |
| 189 // reporter. Set our exception port to null and add signal handlers. | 189 // reporter. Set our exception port to null and add signal handlers. |
| 190 // Both of these are necessary to avoid the crash reporter. Although, we do | 190 // Both of these are necessary to avoid the crash reporter. Although, we do |
| 191 // still seem to be missing some cases. | 191 // still seem to be missing some cases. |
| 192 if (!parsed_command_line.HasSwitch(test_shell::kGDB)) { | 192 if (!parsed_command_line.HasSwitch(test_shell::kGDB)) { |
| 193 task_set_exception_ports(mach_task_self(), EXC_MASK_ALL, MACH_PORT_NULL, | 193 task_set_exception_ports(mach_task_self(), EXC_MASK_ALL, MACH_PORT_NULL, |
| 194 EXCEPTION_DEFAULT, THREAD_STATE_NONE); | 194 EXCEPTION_DEFAULT, THREAD_STATE_NONE); |
| 195 } | 195 } |
| 196 } | 196 } |
| OLD | NEW |