Index: content/test/layouttest_support.cc |
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc |
index 648771015c3e8b2161aa254c2b3ada38870f995b..31d4791abca4a38198456fe2ad439047af6bf93d 100644 |
--- a/content/test/layouttest_support.cc |
+++ b/content/test/layouttest_support.cc |
@@ -19,6 +19,7 @@ |
#include "content/shell/renderer/test_runner/web_frame_test_proxy.h" |
#include "content/shell/renderer/test_runner/web_test_proxy.h" |
#include "content/test/test_media_stream_client.h" |
+#include "third_party/WebKit/public/platform/WebBatteryStatus.h" |
#include "third_party/WebKit/public/platform/WebDeviceMotionData.h" |
#include "third_party/WebKit/public/platform/WebDeviceOrientationData.h" |
#include "third_party/WebKit/public/platform/WebGamepads.h" |
@@ -28,6 +29,7 @@ |
#include "content/browser/renderer_host/popup_menu_helper_mac.h" |
#endif |
+using blink::WebBatteryStatus; |
using blink::WebDeviceMotionData; |
using blink::WebDeviceOrientationData; |
using blink::WebGamepad; |
@@ -117,6 +119,10 @@ void ResetMockScreenOrientation() |
RendererWebKitPlatformSupportImpl::ResetMockScreenOrientationForTesting(); |
} |
+void MockBatteryStatusChanged(const WebBatteryStatus& status) { |
+ RendererWebKitPlatformSupportImpl::MockBatteryStatusChanged(status); |
jochen (gone - plz use gerrit)
2014/05/28 12:08:17
should the battery status be reset between tests?
timvolodine
2014/05/29 08:52:06
good point, I've added a ResetBatteryStatus method
|
+} |
+ |
void EnableRendererLayoutTestMode() { |
RenderThreadImpl::current()->set_layout_test_mode(true); |
} |