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