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

Side by Side Diff: content/public/test/ppapi_test_utils.h

Issue 1088763002: Plugin Power Saver: Add comprehensive browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0260-plugins-overhaul-prerender-tests
Patch Set: add back PostMessage undef 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 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 CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_ 5 #ifndef CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_
6 #define CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_ 6 #define CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
11 12
12 namespace base { 13 namespace base {
13 class CommandLine; 14 class CommandLine;
14 } 15 }
15 16
16 // This file specifies utility functions used in Pepper testing in 17 // This file specifies utility functions used in Pepper testing in
17 // browser_tests and content_browsertests. 18 // browser_tests and content_browsertests.
18 namespace ppapi { 19 namespace ppapi {
19 20
20 // Strips prefixes used to annotate tests from a test name. 21 // Strips prefixes used to annotate tests from a test name.
21 std::string StripTestPrefixes(const std::string& test_name); 22 std::string StripTestPrefixes(const std::string& test_name);
22 23
23 // Registers the PPAPI test plugin to application/x-ppapi-tests. Returns true 24 // Registers the PPAPI test plugin to application/x-ppapi-tests. Returns true
24 // on success, and false otherwise. 25 // on success, and false otherwise.
25 bool RegisterTestPlugin(base::CommandLine* command_line); 26 bool RegisterTestPlugin(base::CommandLine* command_line) WARN_UNUSED_RESULT;
26 27
27 // Registers the PPAPI test plugin with some some extra parameters. Returns true 28 // Registers the PPAPI test plugin with some some extra parameters. Returns true
28 // on success and false otherwise. 29 // on success and false otherwise.
29 bool RegisterTestPluginWithExtraParameters( 30 bool RegisterTestPluginWithExtraParameters(
30 base::CommandLine* command_line, 31 base::CommandLine* command_line,
31 const base::FilePath::StringType& extra_registration_parameters); 32 const base::FilePath::StringType& extra_registration_parameters)
33 WARN_UNUSED_RESULT;
34
35 // Registers the Power Saver test plugin to application/x-ppapi-tests.
36 // Returns true on success, and false otherwise.
37 bool RegisterPowerSaverTestPlugin(base::CommandLine* command_line)
38 WARN_UNUSED_RESULT;
32 39
33 } // namespace ppapi 40 } // namespace ppapi
34 41
35 #endif // CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_ 42 #endif // CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698