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

Side by Side Diff: content/renderer/renderer_main_platform_delegate_mac.mm

Issue 10827282: Move the injection test API to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gypi Created 8 years, 4 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
« no previous file with comments | « content/renderer/DEPS ('k') | content/renderer/renderer_main_platform_delegate_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « content/renderer/DEPS ('k') | content/renderer/renderer_main_platform_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698