Index: content/public/test/render_view_test.cc |
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc |
index c9fb5d4371bed3c688df160f301c558c3f4e401e..5e86a856652c2745c965dfd8082a4f6f937210fb 100644 |
--- a/content/public/test/render_view_test.cc |
+++ b/content/public/test/render_view_test.cc |
@@ -46,6 +46,7 @@ |
#include "third_party/WebKit/public/web/WebInputEvent.h" |
#include "third_party/WebKit/public/web/WebKit.h" |
#include "third_party/WebKit/public/web/WebLocalFrame.h" |
+#include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
#include "third_party/WebKit/public/web/WebScriptSource.h" |
#include "third_party/WebKit/public/web/WebView.h" |
#include "ui/base/resource/resource_bundle.h" |
@@ -65,6 +66,7 @@ using blink::WebGestureEvent; |
using blink::WebInputEvent; |
using blink::WebLocalFrame; |
using blink::WebMouseEvent; |
+using blink::WebRuntimeFeatures; |
using blink::WebScriptSource; |
using blink::WebString; |
using blink::WebURLRequest; |
@@ -234,6 +236,11 @@ void RenderViewTest::SetUp() { |
// because it uses blink internally. |
blink::initialize(blink_platform_impl_.Get()); |
+ // Enable Blink's experimental and test only features so that test code |
+ // does not have to bother enabling each feature. |
+ WebRuntimeFeatures::enableExperimentalFeatures(true); |
+ WebRuntimeFeatures::enableTestOnlyFeatures(true); |
+ |
content_client_.reset(CreateContentClient()); |
content_browser_client_.reset(CreateContentBrowserClient()); |
content_renderer_client_.reset(CreateContentRendererClient()); |