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

Unified Diff: base/test/test_launcher.cc

Issue 17910005: Fix handling of BROWSER_WRAPPER in the test launcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/test_launcher.h ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_launcher.cc
diff --git a/base/test/test_launcher.cc b/base/test/test_launcher.cc
index 0da8cec21cc1becda1969c9482ae3768448da666..f33a3e306b17632ed5ec6b54a67f303e51d08e1f 100644
--- a/base/test/test_launcher.cc
+++ b/base/test/test_launcher.cc
@@ -350,6 +350,7 @@ TestLauncherDelegate::~TestLauncherDelegate() {
}
int LaunchChildGTestProcess(const CommandLine& command_line,
+ const std::string& wrapper,
zhaoqin 2013/06/26 19:03:28 shall we add comment somewhere to indicate why we
Paweł Hajdan Jr. 2013/06/26 19:59:49 Done.
base::TimeDelta timeout,
bool* was_timeout) {
CommandLine new_command_line(command_line.GetProgram());
@@ -367,6 +368,12 @@ int LaunchChildGTestProcess(const CommandLine& command_line,
new_command_line.AppendSwitchNative((*iter).first, (*iter).second);
}
+#if defined(OS_WIN)
+ new_command_line.PrependWrapper(ASCIIToWide(wrapper));
zhaoqin 2013/06/26 19:03:28 src\base\test\test_launcher.cc(372) : error C3861:
Paweł Hajdan Jr. 2013/06/26 19:59:49 Done.
+#elif defined(OS_POSIX)
+ new_command_line.PrependWrapper(wrapper);
+#endif
+
zhaoqin 2013/06/26 19:03:28 shall we move the VLOG here too?
Paweł Hajdan Jr. 2013/06/26 19:59:49 IMHO not worth it. I'm happy to change though if a
base::ProcessHandle process_handle;
base::LaunchOptions options;
« no previous file with comments | « base/test/test_launcher.h ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698