Index: content/test/layouttest_support.cc |
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc |
index 19939173f0fc3fb05d6aa11d9413102165564a05..26983301ce7afa3b68dc8b78fd973d9a10fb1a03 100644 |
--- a/content/test/layouttest_support.cc |
+++ b/content/test/layouttest_support.cc |
@@ -12,6 +12,7 @@ |
#include "content/renderer/render_view_impl.h" |
#include "content/renderer/renderer_webkitplatformsupport_impl.h" |
#include "content/test/test_media_stream_client.h" |
+#include "third_party/WebKit/public/platform/WebDeviceMotionData.h" |
#include "third_party/WebKit/public/platform/WebGamepads.h" |
#include "third_party/WebKit/public/testing/WebFrameTestProxy.h" |
#include "third_party/WebKit/public/testing/WebTestProxy.h" |
@@ -24,6 +25,7 @@ |
#include "content/browser/renderer_host/popup_menu_helper_mac.h" |
#endif |
+using WebKit::WebDeviceMotionData; |
using WebKit::WebGamepads; |
using WebKit::WebRect; |
using WebKit::WebSize; |
@@ -77,6 +79,10 @@ void SetMockGamepads(const WebGamepads& pads) { |
RendererWebKitPlatformSupportImpl::SetMockGamepadsForTesting(pads); |
} |
+void SetMockDeviceMotionData(const WebDeviceMotionData& data) { |
+ RendererWebKitPlatformSupportImpl::SetMockDeviceMotionDataForTesting(data); |
+} |
+ |
void EnableRendererLayoutTestMode() { |
RenderThreadImpl::current()->set_layout_test_mode(true); |
} |