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 "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" | |
14 #include "content/common/sandbox_mac.h" | 13 #include "content/common/sandbox_mac.h" |
15 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
| 15 #import "content/public/common/injection_test_mac.h" |
16 #include "content/common/sandbox_init_mac.h" | 16 #include "content/common/sandbox_init_mac.h" |
17 | 17 |
18 RendererMainPlatformDelegate::RendererMainPlatformDelegate( | 18 RendererMainPlatformDelegate::RendererMainPlatformDelegate( |
19 const content::MainFunctionParams& parameters) | 19 const content::MainFunctionParams& parameters) |
20 : parameters_(parameters) { | 20 : parameters_(parameters) { |
21 } | 21 } |
22 | 22 |
23 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { | 23 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { |
24 } | 24 } |
25 | 25 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 void RendererMainPlatformDelegate::RunSandboxTests() { | 78 void RendererMainPlatformDelegate::RunSandboxTests() { |
79 Class tests_runner = objc_getClass("RendererSandboxTestsRunner"); | 79 Class tests_runner = objc_getClass("RendererSandboxTestsRunner"); |
80 if (tests_runner) { | 80 if (tests_runner) { |
81 if (![tests_runner runTests]) | 81 if (![tests_runner runTests]) |
82 LOG(ERROR) << "Running renderer with failing sandbox tests!"; | 82 LOG(ERROR) << "Running renderer with failing sandbox tests!"; |
83 [sandbox_tests_bundle_ unload]; | 83 [sandbox_tests_bundle_ unload]; |
84 [sandbox_tests_bundle_ release]; | 84 [sandbox_tests_bundle_ release]; |
85 sandbox_tests_bundle_ = nil; | 85 sandbox_tests_bundle_ = nil; |
86 } | 86 } |
87 } | 87 } |
OLD | NEW |