Process Alt-Svc headers.
[chromium-blink-merge.git] / content / shell / renderer / layout_test / blink_test_helpers.h
blobb586b0dadcea4ab11135ead1b3f95015f8d20e5d
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.
5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_HELPERS_H_
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_HELPERS_H_
8 #include <string>
9 #include <vector>
11 namespace base {
12 class FilePath;
15 namespace test_runner {
16 struct TestPreferences;
19 namespace content {
20 struct WebPreferences;
22 // The TestRunner library keeps its settings in a WebPreferenes object.
23 // The content_shell, however, uses WebPreferences. This method exports the
24 // settings from the WebTestRunner library which are relevant for layout tests.
25 void ExportLayoutTestSpecificPreferences(
26 const test_runner::TestPreferences& from,
27 WebPreferences* to);
29 // Applies settings that differ between layout tests and regular mode.
30 void ApplyLayoutTestDefaultPreferences(WebPreferences* prefs);
32 // Returns the root of the Blink checkout.
33 base::FilePath GetWebKitRootDirFilePath();
35 // Returns list of extra font files to be made accessible to the renderer.
36 std::vector<std::string> GetSideloadFontFiles();
38 } // namespace content
40 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_HELPERS_H_