| Index: content/test/layouttest_support.cc
|
| diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
|
| index 13ae6133294992e2b663e3499ed1ad09ab255788..bc2620065786fe689f13486860f38af458531b63 100644
|
| --- a/content/test/layouttest_support.cc
|
| +++ b/content/test/layouttest_support.cc
|
| @@ -31,6 +31,7 @@
|
| #include "content/renderer/renderer_blink_platform_impl.h"
|
| #include "content/shell/common/shell_switches.h"
|
| #include "device/bluetooth/bluetooth_adapter.h"
|
| +#include "third_party/WebKit/public/platform/WebBatteryStatus.h"
|
| #include "third_party/WebKit/public/platform/WebGamepads.h"
|
| #include "third_party/WebKit/public/platform/modules/device_orientation/WebDeviceMotionData.h"
|
| #include "third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationData.h"
|
| @@ -48,6 +49,7 @@
|
| #include "ui/gfx/win/direct_write.h"
|
| #endif
|
|
|
| +using blink::WebBatteryStatus;
|
| using blink::WebDeviceMotionData;
|
| using blink::WebDeviceOrientationData;
|
| using blink::WebGamepad;
|
| @@ -163,6 +165,12 @@
|
|
|
| void SetMockDeviceOrientationData(const WebDeviceOrientationData& data) {
|
| RendererBlinkPlatformImpl::SetMockDeviceOrientationDataForTesting(data);
|
| +}
|
| +
|
| +void MockBatteryStatusChanged(const WebBatteryStatus& status) {
|
| + RenderThreadImpl::current()
|
| + ->blink_platform_impl()
|
| + ->MockBatteryStatusChangedForTesting(status);
|
| }
|
|
|
| void EnableRendererLayoutTestMode() {
|
|
|