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

Unified Diff: base/test/gtest_util.cc

Issue 2439423003: test launcher: make --gtest_filter=A.B + --gtest_also_run_disabled_tests also run A.DISABLED_B or D… (Closed)
Patch Set: Just rebase. Created 4 years, 1 month 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/gtest_util.h ('k') | base/test/launcher/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/gtest_util.cc
diff --git a/base/test/gtest_util.cc b/base/test/gtest_util.cc
index 5432c4ac112d60237d477bb38da13a3bc2a9a78a..6da902da2e09859c1f0a2c4e039da0a50d31202b 100644
--- a/base/test/gtest_util.cc
+++ b/base/test/gtest_util.cc
@@ -10,6 +10,7 @@
#include "base/files/file_path.h"
#include "base/json/json_file_value_serializer.h"
+#include "base/strings/string_util.h"
#include "base/values.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -25,6 +26,12 @@ std::string FormatFullTestName(const std::string& test_case_name,
return test_case_name + "." + test_name;
}
+std::string TestNameWithoutDisabledPrefix(const std::string& full_test_name) {
+ std::string test_name_no_disabled(full_test_name);
+ ReplaceSubstringsAfterOffset(&test_name_no_disabled, 0, "DISABLED_", "");
+ return test_name_no_disabled;
+}
+
std::vector<TestIdentifier> GetCompiledInTests() {
testing::UnitTest* const unit_test = testing::UnitTest::GetInstance();
« no previous file with comments | « base/test/gtest_util.h ('k') | base/test/launcher/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698