summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl/test_harness_utils.h
blob: 0098969cf8b7ddc97e04deaf68da02fdfc9b06e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2014 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 PPAPI_TESTS_TEST_HARNESS_UTILS_H_
#define PPAPI_TESTS_TEST_HARNESS_UTILS_H_

#include <string>
#include "base/files/file_path.h"
#include "ppapi/shared_impl/ppapi_shared_export.h"

// This file specifies utility functions used in Pepper testing in
// browser_tests and content_browsertests.

namespace base {
class CommandLine;
}

namespace ppapi {

// Strips prefixes used to annotate tests from a test name.
std::string PPAPI_SHARED_EXPORT StripTestPrefixes(const std::string& test_name);

// Returns a platform-specific filename relative to the chrome executable.
base::FilePath::StringType PPAPI_SHARED_EXPORT GetTestLibraryName();

} // namespace ppapi

#endif  // PPAPI_TESTS_TEST_HARNESS_UTILS_H_