summaryrefslogtreecommitdiffstats
path: root/content/shell/common/webkit_test_helpers.h
blob: 60cdce67a3fe2a04a8fbcf9d4d5cd607e460b7e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_SHELL_COMMON_WEBKIT_TEST_HELPERS_H_
#define CONTENT_SHELL_COMMON_WEBKIT_TEST_HELPERS_H_

struct WebPreferences;

namespace WebTestRunner {
struct WebPreferences;
}

namespace base {
class FilePath;
}

struct WebPreferences;

namespace content {

// The TestRunner library keeps its settings in a WebTestRunner::WebPreferenes
// object. The content_shell, however, uses WebPreferences. This
// method exports the settings from the WebTestRunner library which are relevant
// for layout tests.
void ExportLayoutTestSpecificPreferences(
    const WebTestRunner::WebPreferences& from, WebPreferences* to);

// Applies settings that differ between layout tests and regular mode.
void ApplyLayoutTestDefaultPreferences(WebPreferences* prefs);

// Returns the root of the Blink checkout.
base::FilePath GetWebKitRootDirFilePath();

}  // namespace content

#endif  // CONTENT_SHELL_COMMON_WEBKIT_TEST_HELPERS_H_