Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / public / test / ppapi_test_utils.h
blob134184030de6a630d4e1c95a2a2a0831c0cefa4a
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_
6 #define CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_
8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h"
11 namespace base {
12 class CommandLine;
15 // This file specifies utility functions used in Pepper testing in
16 // browser_tests and content_browsertests.
17 namespace ppapi {
19 // Registers the PPAPI test plugin to application/x-ppapi-tests. Returns true
20 // on success, and false otherwise.
21 bool RegisterTestPlugin(base::CommandLine* command_line) WARN_UNUSED_RESULT;
23 // Registers the PPAPI test plugin with some some extra parameters. Returns true
24 // on success and false otherwise.
25 bool RegisterTestPluginWithExtraParameters(
26 base::CommandLine* command_line,
27 const base::FilePath::StringType& extra_registration_parameters)
28 WARN_UNUSED_RESULT;
30 // Registers the Power Saver test plugin to application/x-ppapi-tests.
31 // Returns true on success, and false otherwise.
32 bool RegisterPowerSaverTestPlugin(base::CommandLine* command_line)
33 WARN_UNUSED_RESULT;
35 } // namespace ppapi
37 #endif // CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_