12011-06-29 Yuta Kitamura <yutak@chromium.org>
2
3 Reviewed by NOBODY (OOPS!).
4
5 DRT: Make Hixie76WebSocketProtocolEnabled preference flag configurable from LayoutTestController
6 https://bugs.webkit.org/show_bug.cgi?id=63532
7
8 LayoutTestController::overridePreference() will be used to change the value of
9 the Hixie76WebSocketProtocolEnabled preference flag from layout tests. In this way,
10 we can avoid writing a lot of boilerplate code in each port's DumpRenderTree, but
11 at least we need to reset preference values in DumpRenderTree every time we start
12 a new test because preference values changed in some test should not be leaked
13 to the next test.
14
15 * DumpRenderTree/chromium/LayoutTestController.cpp:
16 (LayoutTestController::overridePreference):
17 The name of preference key is defined in WebKit/{mac/WebView,win}/WebPreferenceKeysPrivate.h.
18 * DumpRenderTree/chromium/WebPreferences.cpp:
19 (WebPreferences::reset):
20 Set the default value. This will be called from TestShell::resetTestController().
21 (WebPreferences::applyTo):
22 * DumpRenderTree/chromium/WebPreferences.h:
23 * DumpRenderTree/mac/DumpRenderTree.mm:
24 (resetDefaultsToConsistentValues): Set the default value.
25 * DumpRenderTree/win/DumpRenderTree.cpp:
26 (resetDefaultsToConsistentValues): Ditto.
27