Index: chrome/renderer/renderer_main_unittest.cc |
diff --git a/chrome/renderer/renderer_main_unittest.cc b/chrome/renderer/renderer_main_unittest.cc |
index 7302057c15d515bc5018cac443882010763c0207..d3de52cd9365faf6738dd0bdcb1e6d3f1f7a2c38 100644 |
--- a/chrome/renderer/renderer_main_unittest.cc |
+++ b/chrome/renderer/renderer_main_unittest.cc |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/compiler_specific.h" |
#include "base/message_loop.h" |
#include "base/process_util.h" |
#include "base/test/multiprocess_test.h" |
@@ -36,6 +37,9 @@ class RendererMainTest : public base::MultiProcessTest { |
base::ProcessHandle SpawnChild(const std::string& procname, |
IPC::Channel* channel); |
+ virtual CommandLine MakeCmdLine(const std::string& procname, |
+ bool debug_on_start) OVERRIDE; |
+ |
// Created around each test instantiation. |
MessageLoopForIO *message_loop_; |
}; |
@@ -65,6 +69,19 @@ ProcessHandle RendererMainTest::SpawnChild(const std::string& procname, |
return MultiProcessTest::SpawnChild(procname, fds_to_map, false); |
} |
+CommandLine RendererMainTest::MakeCmdLine(const std::string& procname, |
+ bool debug_on_start) { |
+ CommandLine command_line = |
+ MultiProcessTest::MakeCmdLine(procname, debug_on_start); |
+#if defined(USE_SECCOMP_SANDBOX) |
+ // Turn off seccomp for this test. It's just a problem of refactoring, |
+ // not a bug. |
+ // http://code.google.com/p/chromium/issues/detail?id=59376 |
+ command_line.AppendSwitch(switches::kDisableSeccompSandbox); |
+#endif |
+ return command_line; |
+} |
+ |
// Listener class that kills the message loop when it connects. |
class SuicidalListener : public IPC::Channel::Listener { |
public: |