summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-09 00:59:31 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-09 00:59:31 +0000
commit963a91b1fda682b844b9ece88d2070862f51893f (patch)
tree1a12f5e9b33fb4147e130b6ba8203e89b3d8df58 /chrome
parenta958382be2dbbdd153b01473c4f2498cb9beac28 (diff)
downloadchromium_src-963a91b1fda682b844b9ece88d2070862f51893f.zip
chromium_src-963a91b1fda682b844b9ece88d2070862f51893f.tar.gz
chromium_src-963a91b1fda682b844b9ece88d2070862f51893f.tar.bz2
Get rid of multiprocess_test's debug_on_start arguments.
(It was only ever given a "true" value once, and even that seemed dubious.) R=phajdan.jr@chromium.org TBR=darin@chromium.org, jeremy@chromium.org Review URL: https://codereview.chromium.org/191483002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc12
-rw-r--r--chrome/common/multi_process_lock_unittest.cc5
-rw-r--r--chrome/common/service_process_util_unittest.cc5
3 files changed, 9 insertions, 13 deletions
diff --git a/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc b/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
index 2d4e196..62c6817 100644
--- a/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
+++ b/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc
@@ -317,8 +317,7 @@ class CloudPrintProxyPolicyStartupTest : public base::MultiProcessTest,
virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
// MultiProcessTest implementation.
- virtual CommandLine MakeCmdLine(const std::string& procname,
- bool debug_on_start) OVERRIDE;
+ virtual CommandLine MakeCmdLine(const std::string& procname) OVERRIDE;
bool LaunchBrowser(const CommandLine& command_line, Profile* profile) {
int return_code = 0;
@@ -434,9 +433,9 @@ base::ProcessHandle CloudPrintProxyPolicyStartupTest::Launch(
kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor));
base::LaunchOptions options;
options.fds_to_remap = &ipc_file_list;
- base::ProcessHandle handle = SpawnChildWithOptions(name, options, false);
+ base::ProcessHandle handle = SpawnChildWithOptions(name, options);
#else
- base::ProcessHandle handle = SpawnChild(name, false);
+ base::ProcessHandle handle = SpawnChild(name);
#endif
EXPECT_TRUE(handle);
return handle;
@@ -475,9 +474,8 @@ void CloudPrintProxyPolicyStartupTest::OnChannelConnected(int32 peer_pid) {
}
CommandLine CloudPrintProxyPolicyStartupTest::MakeCmdLine(
- const std::string& procname,
- bool debug_on_start) {
- CommandLine cl = MultiProcessTest::MakeCmdLine(procname, debug_on_start);
+ const std::string& procname) {
+ CommandLine cl = MultiProcessTest::MakeCmdLine(procname);
cl.AppendSwitchASCII(switches::kProcessChannelID, startup_channel_id_);
#if defined(OS_MACOSX)
cl.AppendSwitchASCII(kTestExecutablePath, executable_path_.value());
diff --git a/chrome/common/multi_process_lock_unittest.cc b/chrome/common/multi_process_lock_unittest.cc
index 95939de..773b66e 100644
--- a/chrome/common/multi_process_lock_unittest.cc
+++ b/chrome/common/multi_process_lock_unittest.cc
@@ -51,7 +51,7 @@ std::string MultiProcessLockTest::GenerateLockName() {
void MultiProcessLockTest::ExpectLockIsLocked(const std::string &name) {
ScopedEnvironmentVariable var(kLockEnviromentVarName, name);
- base::ProcessHandle handle = SpawnChild("MultiProcessLockTryFailMain", false);
+ base::ProcessHandle handle = SpawnChild("MultiProcessLockTryFailMain");
ASSERT_TRUE(handle);
int exit_code = 0;
EXPECT_TRUE(base::WaitForExitCode(handle, &exit_code));
@@ -61,8 +61,7 @@ void MultiProcessLockTest::ExpectLockIsLocked(const std::string &name) {
void MultiProcessLockTest::ExpectLockIsUnlocked(
const std::string &name) {
ScopedEnvironmentVariable var(kLockEnviromentVarName, name);
- base::ProcessHandle handle = SpawnChild("MultiProcessLockTrySucceedMain",
- false);
+ base::ProcessHandle handle = SpawnChild("MultiProcessLockTrySucceedMain");
ASSERT_TRUE(handle);
int exit_code = 0;
EXPECT_TRUE(base::WaitForExitCode(handle, &exit_code));
diff --git a/chrome/common/service_process_util_unittest.cc b/chrome/common/service_process_util_unittest.cc
index 4dc9c32..f73a653 100644
--- a/chrome/common/service_process_util_unittest.cc
+++ b/chrome/common/service_process_util_unittest.cc
@@ -95,7 +95,7 @@ void ServiceProcessStateTest::SetUp() {
}
void ServiceProcessStateTest::LaunchAndWait(const std::string& name) {
- base::ProcessHandle handle = SpawnChild(name, false);
+ base::ProcessHandle handle = SpawnChild(name);
ASSERT_TRUE(handle);
int exit_code = 0;
ASSERT_TRUE(base::WaitForExitCode(handle, &exit_code));
@@ -185,8 +185,7 @@ TEST_F(ServiceProcessStateTest, SharedMem) {
}
TEST_F(ServiceProcessStateTest, MAYBE_ForceShutdown) {
- base::ProcessHandle handle = SpawnChild("ServiceProcessStateTestShutdown",
- true);
+ base::ProcessHandle handle = SpawnChild("ServiceProcessStateTestShutdown");
ASSERT_TRUE(handle);
for (int i = 0; !CheckServiceProcessReady() && i < 10; ++i) {
base::PlatformThread::Sleep(TestTimeouts::tiny_timeout());