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 "content/renderer/renderer_main_platform_delegate.h" | 5 #include "content/renderer/renderer_main_platform_delegate.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 #include <objc/runtime.h> | 8 #include <objc/runtime.h> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/sys_string_conversions.h" | 12 #include "base/sys_string_conversions.h" |
| 13 #import "chrome/test/security_tests/renderer_sandbox_tests_mac.h" |
13 #import "content/common/chrome_application_mac.h" | 14 #import "content/common/chrome_application_mac.h" |
14 #include "content/common/content_switches.h" | |
15 #include "content/common/sandbox_mac.h" | 15 #include "content/common/sandbox_mac.h" |
16 #import "chrome/test/security_tests/renderer_sandbox_tests_mac.h" | 16 #include "content/public/common/content_switches.h" |
17 #include "third_party/WebKit/Source/WebKit/mac/WebCoreSupport/WebSystemInterface
.h" | 17 #include "third_party/WebKit/Source/WebKit/mac/WebCoreSupport/WebSystemInterface
.h" |
18 | 18 |
19 RendererMainPlatformDelegate::RendererMainPlatformDelegate( | 19 RendererMainPlatformDelegate::RendererMainPlatformDelegate( |
20 const MainFunctionParams& parameters) | 20 const MainFunctionParams& parameters) |
21 : parameters_(parameters) { | 21 : parameters_(parameters) { |
22 } | 22 } |
23 | 23 |
24 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { | 24 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { |
25 } | 25 } |
26 | 26 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void RendererMainPlatformDelegate::RunSandboxTests() { | 85 void RendererMainPlatformDelegate::RunSandboxTests() { |
86 Class tests_runner = objc_getClass("RendererSandboxTestsRunner"); | 86 Class tests_runner = objc_getClass("RendererSandboxTestsRunner"); |
87 if (tests_runner) { | 87 if (tests_runner) { |
88 if (![tests_runner runTests]) | 88 if (![tests_runner runTests]) |
89 LOG(ERROR) << "Running renderer with failing sandbox tests!"; | 89 LOG(ERROR) << "Running renderer with failing sandbox tests!"; |
90 [sandbox_tests_bundle_ unload]; | 90 [sandbox_tests_bundle_ unload]; |
91 [sandbox_tests_bundle_ release]; | 91 [sandbox_tests_bundle_ release]; |
92 sandbox_tests_bundle_ = nil; | 92 sandbox_tests_bundle_ = nil; |
93 } | 93 } |
94 } | 94 } |
OLD | NEW |