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

Unified Diff: content/public/test/ppapi_test_utils.h

Issue 1062163004: Plugins: Move Prerender tests to PPAPI and some refactoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: content/public/test/ppapi_test_utils.h
diff --git a/content/public/test/ppapi_test_utils.h b/content/public/test/ppapi_test_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..b5e997995c6b5c2b1529a0e5bbb43d5fe516d953
--- /dev/null
+++ b/content/public/test/ppapi_test_utils.h
@@ -0,0 +1,33 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_
+#define CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_
+
+#include <string>
+
+#include "base/files/file_path.h"
+
+namespace base {
+class CommandLine;
+}
+
+// This file specifies utility functions used in Pepper testing in
+// browser_tests and content_browsertests.
+namespace ppapi {
+
+// Strips prefixes used to annotate tests from a test name.
+std::string StripTestPrefixes(const std::string& test_name);
+
+// Registers the PPAPI test plugin to application/x-ppapi-tests.
+void RegisterTestPlugin(base::CommandLine* command_line);
+
+// Registers the PPAPI test plugin with some some extra parameters.
+void RegisterTestPluginWithExtraParameters(
+ base::CommandLine* command_line,
+ const base::FilePath::StringType& extra_registration_parameters);
+
+} // namespace ppapi
+
+#endif // CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698