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

Unified Diff: ppapi/shared_impl/test_utils.cc

Issue 1140953003: PPAPI Testing: Clean up location of ppapi::StripTestPrefixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to shared_impl Created 5 years, 7 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
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

Powered by Google App Engine
This is Rietveld 408576698