Index: ppapi/shared_impl/test_utils.cc |
diff --git a/ppapi/shared_impl/unittest_utils.cc b/ppapi/shared_impl/test_utils.cc |
similarity index 97% |
rename from ppapi/shared_impl/unittest_utils.cc |
rename to ppapi/shared_impl/test_utils.cc |
index af904324187e3cf93893b9f7bf8807ccf1366272..6f85fce49115ec838ac4c22299291d03ca899031 100644 |
--- a/ppapi/shared_impl/unittest_utils.cc |
+++ b/ppapi/shared_impl/test_utils.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "ppapi/shared_impl/unittest_utils.h" |
+#include "ppapi/shared_impl/test_utils.h" |
#include <cmath> |
@@ -209,4 +209,10 @@ bool TestEqual(const PP_Var& expected, |
return Equals(expected, actual, test_string_references, &visited_map); |
} |
+std::string StripTestPrefixes(const std::string& test_name) { |
+ if (test_name.find("DISABLED_") == 0) |
+ return test_name.substr(strlen("DISABLED_")); |
+ return test_name; |
+} |
+ |
} // namespace ppapi |