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