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

Unified Diff: chrome/renderer/renderer_main_unittest.cc

Issue 3797010: seccomp: disable seccomp for RendererMainTest (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: ok Created 10 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/multiprocess_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « base/test/multiprocess_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698