Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / shell / renderer / layout_test / blink_test_helpers.h
blobed71efcbf1d37d656f6bce3e2aa773eca73ff729
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 namespace base {
9 class FilePath;
12 namespace test_runner {
13 struct TestPreferences;
16 namespace content {
17 struct WebPreferences;
19 // The TestRunner library keeps its settings in a WebPreferenes object.
20 // The content_shell, however, uses WebPreferences. This method exports the
21 // settings from the WebTestRunner library which are relevant for layout tests.
22 void ExportLayoutTestSpecificPreferences(
23 const test_runner::TestPreferences& from,
24 WebPreferences* to);
26 // Applies settings that differ between layout tests and regular mode.
27 void ApplyLayoutTestDefaultPreferences(WebPreferences* prefs);
29 // Returns the root of the Blink checkout.
30 base::FilePath GetWebKitRootDirFilePath();
32 } // namespace content
34 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_HELPERS_H_