WebKit Roll 139512:139548
[chromium-blink-merge.git] / content / shell / webkit_test_helpers.h
blob4cb9626ee5676afe66827fa6ca40345373b771a9
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_WEBKIT_TEST_HELPERS_H_
6 #define CONTENT_SHELL_WEBKIT_TEST_HELPERS_H_
8 namespace WebTestRunner {
9 struct WebPreferences;
12 namespace webkit_glue {
13 struct WebPreferences;
16 namespace content {
18 // The TestRunner library keeps its settings in a WebTestRunner::WebPreferenes
19 // object. The content_shell, however, uses webkit_glue::WebPreferences. This
20 // method exports the settings from the WebTestRunner library which are relevant
21 // for layout tests.
22 void ExportLayoutTestSpecificPreferences(
23 const WebTestRunner::WebPreferences& from, webkit_glue::WebPreferences* to);
25 // Applies settings that differ between layout tests and regular mode.
26 void ApplyLayoutTestDefaultPreferences(webkit_glue::WebPreferences* prefs);
28 } // namespace content
30 #endif // CONTENT_SHELL_WEBKIT_TEST_HELPERS_H_