Index: content/renderer/renderer_main_platform_delegate_mac.mm |
diff --git a/content/renderer/renderer_main_platform_delegate_mac.mm b/content/renderer/renderer_main_platform_delegate_mac.mm |
index 7c42727ad32b3661c81a5411657622d9ca17748e..251b62170a789c05660a6d8c10ee202ec3e2c1a0 100644 |
--- a/content/renderer/renderer_main_platform_delegate_mac.mm |
+++ b/content/renderer/renderer_main_platform_delegate_mac.mm |
@@ -128,35 +128,6 @@ void RendererMainPlatformDelegate::PlatformInitialize() { |
void RendererMainPlatformDelegate::PlatformUninitialize() { |
} |
-static void LogTestMessage(std::string message, bool is_error) { |
- if (is_error) |
- LOG(ERROR) << message; |
- else |
- VLOG(0) << message; |
-} |
- |
-bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox) { |
- const CommandLine& command_line = parameters_.command_line; |
- |
- if (command_line.HasSwitch(switches::kTestSandbox)) { |
- std::string bundle_path = |
- command_line.GetSwitchValueNative(switches::kTestSandbox); |
- if (bundle_path.empty()) { |
- NOTREACHED() << "Bad bundle path"; |
- return false; |
- } |
- NSBundle* tests_bundle = |
- [NSBundle bundleWithPath:base::SysUTF8ToNSString(bundle_path)]; |
- if (![tests_bundle load]) { |
- NOTREACHED() << "Failed to load bundle"; |
- return false; |
- } |
- sandbox_tests_bundle_ = [tests_bundle retain]; |
- [objc_getClass("RendererSandboxTestsRunner") setLogFunction:LogTestMessage]; |
- } |
- return true; |
-} |
- |
bool RendererMainPlatformDelegate::EnableSandbox() { |
// Enable the sandbox. |
bool sandbox_initialized = InitializeSandbox(); |
@@ -170,15 +141,4 @@ bool RendererMainPlatformDelegate::EnableSandbox() { |
return sandbox_initialized; |
} |
-void RendererMainPlatformDelegate::RunSandboxTests(bool no_sandbox) { |
- Class tests_runner = objc_getClass("RendererSandboxTestsRunner"); |
- if (tests_runner) { |
- if (![tests_runner runTests]) |
- LOG(ERROR) << "Running renderer with failing sandbox tests!"; |
- [sandbox_tests_bundle_ unload]; |
- [sandbox_tests_bundle_ release]; |
- sandbox_tests_bundle_ = nil; |
- } |
-} |
- |
} // namespace content |