Index: content/test/layouttest_support.cc |
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc |
index a186e191ff4beeee921a6dbbe48902c310626307..c9f192b9e11ba54d1241f460275f6526879ac2bb 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_webapplicationcachehost_impl.h" |
#include "content/renderer/renderer_webkitplatformsupport_impl.h" |
+#include "third_party/WebKit/Source/Platform/chromium/public/WebDeviceMotionListener.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" |
#include "third_party/WebKit/Tools/DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h" |
@@ -23,6 +24,7 @@ |
#include "content/browser/renderer_host/popup_menu_helper_mac.h" |
#endif |
+using WebKit::WebDeviceMotionListener; |
using WebKit::WebGamepads; |
using WebTestRunner::WebTestProxy; |
using WebTestRunner::WebTestProxyBase; |
@@ -58,6 +60,11 @@ void SetMockGamepads(const WebGamepads& pads) { |
RendererWebKitPlatformSupportImpl::SetMockGamepadsForTesting(pads); |
} |
+void SetMockDeviceMotionListener(WebDeviceMotionListener* listener) { |
+ RendererWebKitPlatformSupportImpl::SetMockDeviceMotionListenerForTesting( |
+ listener); |
+} |
+ |
void DisableAppCacheLogging() { |
RendererWebApplicationCacheHostImpl::DisableLoggingForTesting(); |
} |