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

Unified Diff: chrome/test/browser/browser_test_launcher_in_proc.cc

Issue 155112: Browser tests now support the run disabled tests flag (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « no previous file | chrome/test/browser/browser_test_launcher_out_of_proc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/browser/browser_test_launcher_in_proc.cc
===================================================================
--- chrome/test/browser/browser_test_launcher_in_proc.cc (revision 19954)
+++ chrome/test/browser/browser_test_launcher_in_proc.cc (working copy)
@@ -68,10 +68,13 @@
bool RunTest(const std::string& test_name) {
std::string filter_flag = StringPrintf("--gtest_filter=%s",
test_name.c_str());
- char* argv[2];
+ char* argv[3];
argv[0] = const_cast<char*>("");
argv[1] = const_cast<char*>(filter_flag.c_str());
- return RunAsIs(2, argv) == 0;
+ // Always enable disabled tests. This method is not called with disabled
+ // tests unless this flag was specified to the browser test executable.
+ argv[2] = "--gtest_also_run_disabled_tests";
+ return RunAsIs(3, argv) == 0;
}
// Calls-in to GTest with the arguments we were started with.
« no previous file with comments | « no previous file | chrome/test/browser/browser_test_launcher_out_of_proc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698