1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef PPAPI_TESTS_TEST_HARNESS_UTILS_H_ 6 #define PPAPI_TESTS_TEST_HARNESS_UTILS_H_ 7 8 #include <string> 9 #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 15 namespace base { 16 class CommandLine; 17 } 18 19 namespace ppapi { 20 21 // Strips prefixes used to annotate tests from a test name. 22 std::string PPAPI_SHARED_EXPORT StripTestPrefixes(const std::string& test_name); 23 24 // Returns a platform-specific filename relative to the chrome executable. 25 base::FilePath::StringType PPAPI_SHARED_EXPORT GetTestLibraryName(); 26 27 } // namespace ppapi 28 29 #endif // PPAPI_TESTS_TEST_HARNESS_UTILS_H_ 30