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

Unified Diff: content/public/test/test_launcher.cc

Issue 23132002: GTTF: Add a basic new unit test launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed gyp cycle Created 7 years, 4 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 | « content/content_browser.gypi ('k') | third_party/libxml/chromium/libxml_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_launcher.cc
diff --git a/content/public/test/test_launcher.cc b/content/public/test/test_launcher.cc
index 0c3e3555d3ca6aaa9a22db240bca5ee8b5647cb0..c29a239c18cafafae22f7562744375e8916f5cd2 100644
--- a/content/public/test/test_launcher.cc
+++ b/content/public/test/test_launcher.cc
@@ -86,7 +86,17 @@ int DoRunTestInternal(const testing::TestCase* test_case,
}
}
- CommandLine new_cmd_line(command_line);
+ CommandLine new_cmd_line(command_line.GetProgram());
+ CommandLine::SwitchMap switches = command_line.GetSwitches();
+
+ // Strip out gtest_output flag because otherwise we would overwrite results
+ // of the other tests.
+ switches.erase(base::kGTestOutputFlag);
+
+ for (CommandLine::SwitchMap::const_iterator iter = switches.begin();
+ iter != switches.end(); ++iter) {
+ new_cmd_line.AppendSwitchNative(iter->first, iter->second);
+ }
// Always enable disabled tests. This method is not called with disabled
// tests unless this flag was specified to the browser test executable.
« no previous file with comments | « content/content_browser.gypi ('k') | third_party/libxml/chromium/libxml_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698