OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SHELL_COMMON_WEBKIT_TEST_HELPERS_H_ | 5 #ifndef CONTENT_SHELL_COMMON_WEBKIT_TEST_HELPERS_H_ |
6 #define CONTENT_SHELL_COMMON_WEBKIT_TEST_HELPERS_H_ | 6 #define CONTENT_SHELL_COMMON_WEBKIT_TEST_HELPERS_H_ |
7 | 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
8 struct WebPreferences; | 11 struct WebPreferences; |
9 | 12 |
10 namespace base { | 13 namespace base { |
11 class FilePath; | 14 class FilePath; |
12 } | 15 } |
13 | 16 |
14 struct WebPreferences; | 17 struct WebPreferences; |
15 | 18 |
16 namespace content { | 19 namespace content { |
17 | 20 |
18 struct TestPreferences; | 21 struct TestPreferences; |
19 | 22 |
20 // The TestRunner library keeps its settings in a WebTestRunner::WebPreferenes | 23 // The TestRunner library keeps its settings in a WebTestRunner::WebPreferenes |
21 // object. The content_shell, however, uses WebPreferences. This | 24 // object. The content_shell, however, uses WebPreferences. This |
22 // method exports the settings from the WebTestRunner library which are relevant | 25 // method exports the settings from the WebTestRunner library which are relevant |
23 // for layout tests. | 26 // for layout tests. |
24 void ExportLayoutTestSpecificPreferences( | 27 void ExportLayoutTestSpecificPreferences( |
25 const TestPreferences& from, WebPreferences* to); | 28 const TestPreferences& from, WebPreferences* to); |
26 | 29 |
27 // Applies settings that differ between layout tests and regular mode. | 30 // Applies settings that differ between layout tests and regular mode. |
28 void ApplyLayoutTestDefaultPreferences(WebPreferences* prefs); | 31 void ApplyLayoutTestDefaultPreferences(WebPreferences* prefs); |
29 | 32 |
30 // Returns the root of the Blink checkout. | 33 // Returns the root of the Blink checkout. |
31 base::FilePath GetWebKitRootDirFilePath(); | 34 base::FilePath GetWebKitRootDirFilePath(); |
32 | 35 |
| 36 // Returns list of extra font files to be made accessible to the renderer. |
| 37 std::vector<std::string> GetSideloadFontFiles(); |
| 38 |
33 } // namespace content | 39 } // namespace content |
34 | 40 |
35 #endif // CONTENT_SHELL_COMMON_WEBKIT_TEST_HELPERS_H_ | 41 #endif // CONTENT_SHELL_COMMON_WEBKIT_TEST_HELPERS_H_ |
OLD | NEW |