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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_helpers.h

Issue 2134723002: Reland #1: Fix re-usage of stale cached WebPreferences in RenderViewHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanly reset WebPreferences with the initial untampered defaults. Created 4 years, 5 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
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_RENDERER_LAYOUT_TEST_BLINK_TEST_HELPERS_H_ 5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_HELPERS_H_
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_HELPERS_H_ 6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_HELPERS_H_
7 7
8 namespace base { 8 namespace base {
9 class FilePath; 9 class FilePath;
10 } 10 }
11 11
12 namespace test_runner { 12 namespace test_runner {
13 struct TestPreferences; 13 struct TestPreferences;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 struct WebPreferences; 17 struct WebPreferences;
18 18
19 // The TestRunner library keeps its settings in a WebPreferenes object. 19 // The TestRunner library keeps its settings in a TestPreferences object.
20 // The content_shell, however, uses WebPreferences. This method exports the 20 // The content_shell, however, uses WebPreferences. This method exports the
21 // settings from the WebTestRunner library which are relevant for layout tests. 21 // settings from the TestRunner library which are relevant for layout tests.
22 void ExportLayoutTestSpecificPreferences( 22 void ExportLayoutTestSpecificPreferences(
23 const test_runner::TestPreferences& from, 23 const test_runner::TestPreferences& from,
24 WebPreferences* to); 24 WebPreferences* to);
25 25
26 // Applies settings that differ between layout tests and regular mode. 26 // Applies settings that differ between layout tests and regular mode.
27 void ApplyLayoutTestDefaultPreferences(WebPreferences* prefs); 27 void ApplyLayoutTestDefaultPreferences(WebPreferences* prefs);
28 28
29 // Returns the root of the Blink checkout. 29 // Returns the root of the Blink checkout.
30 base::FilePath GetWebKitRootDirFilePath(); 30 base::FilePath GetWebKitRootDirFilePath();
31 31
32 } // namespace content 32 } // namespace content
33 33
34 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_HELPERS_H_ 34 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698