OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_TESTS_TEST_HARNESS_UTILS_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_ |
6 #define PPAPI_TESTS_TEST_HARNESS_UTILS_H_ | 6 #define CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
| 9 |
9 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
10 #include "ppapi/shared_impl/ppapi_shared_export.h" | |
11 | |
12 // This file specifies utility functions used in Pepper testing in | |
13 // browser_tests and content_browsertests. | |
14 | 11 |
15 namespace base { | 12 namespace base { |
16 class CommandLine; | 13 class CommandLine; |
17 } | 14 } |
18 | 15 |
| 16 // This file specifies utility functions used in Pepper testing in |
| 17 // browser_tests and content_browsertests. |
19 namespace ppapi { | 18 namespace ppapi { |
20 | 19 |
21 // Strips prefixes used to annotate tests from a test name. | 20 // Strips prefixes used to annotate tests from a test name. |
22 std::string PPAPI_SHARED_EXPORT StripTestPrefixes(const std::string& test_name); | 21 std::string StripTestPrefixes(const std::string& test_name); |
23 | 22 |
24 // Returns a platform-specific filename relative to the chrome executable. | 23 // Registers the PPAPI test plugin to application/x-ppapi-tests. Returns true |
25 base::FilePath::StringType PPAPI_SHARED_EXPORT GetTestLibraryName(); | 24 // on success, and false otherwise. |
| 25 bool RegisterTestPlugin(base::CommandLine* command_line); |
26 | 26 |
27 } // namespace ppapi | 27 // Registers the PPAPI test plugin with some some extra parameters. Returns true |
| 28 // on success and false otherwise. |
| 29 bool RegisterTestPluginWithExtraParameters( |
| 30 base::CommandLine* command_line, |
| 31 const base::FilePath::StringType& extra_registration_parameters); |
28 | 32 |
29 #endif // PPAPI_TESTS_TEST_HARNESS_UTILS_H_ | 33 } // namespace ppapi |
| 34 |
| 35 #endif // CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_ |
OLD | NEW |