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

Side by Side Diff: content/shell/common/webkit_test_helpers.h

Issue 231763003: Support sideloaded fonts via command line option for blink layout_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: guard for xp Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/common/shell_switches.cc ('k') | content/shell/common/webkit_test_helpers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « content/shell/common/shell_switches.cc ('k') | content/shell/common/webkit_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698