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

Unified Diff: base/test/gtest_util.h

Issue 2439423003: test launcher: make --gtest_filter=A.B + --gtest_also_run_disabled_tests also run A.DISABLED_B or D… (Closed)
Patch Set: Created 4 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 | « no previous file | base/test/gtest_util.cc » ('j') | base/test/gtest_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/gtest_util.h
diff --git a/base/test/gtest_util.h b/base/test/gtest_util.h
index 11c612d77808b4b3424ce7ac3df493bd5043225b..5dad78b7439ed617786a998f4a64f18396485af6 100644
--- a/base/test/gtest_util.h
+++ b/base/test/gtest_util.h
@@ -78,6 +78,11 @@ struct TestIdentifier {
std::string FormatFullTestName(const std::string& test_case_name,
const std::string& test_name);
+// Returns the full test name with the "DISABLED_" prefix stripped out.
+// e.g. for the full test names "A.DISABLED_B", "DISABLED_A.B", and
+// "DISABLED_A.DISABLED_B", returns "A.B".
+std::string NormalizeTestName(const std::string& full_test_name);
+
// Returns a vector of gtest-based tests compiled into
// current executable.
std::vector<TestIdentifier> GetCompiledInTests();
« no previous file with comments | « no previous file | base/test/gtest_util.cc » ('j') | base/test/gtest_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698