Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2330)

Unified Diff: content/test/layouttest_support.cc

Issue 1538803002: Migrates battery_status from content/renderer/ to WebKit/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index c99e56a2edee8aae87425bea646baeddab1ba30b..153bbfcd3c45843e9e2d1fbb5fa30ee6ae06d19f 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -31,7 +31,6 @@
#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"
@@ -49,7 +48,6 @@
#include "ui/gfx/win/direct_write.h"
#endif
-using blink::WebBatteryStatus;
using blink::WebDeviceMotionData;
using blink::WebDeviceOrientationData;
using blink::WebGamepad;
@@ -167,12 +165,6 @@ void SetMockDeviceOrientationData(const WebDeviceOrientationData& data) {
RendererBlinkPlatformImpl::SetMockDeviceOrientationDataForTesting(data);
}
-void MockBatteryStatusChanged(const WebBatteryStatus& status) {
- RenderThreadImpl::current()
- ->blink_platform_impl()
- ->MockBatteryStatusChangedForTesting(status);
-}
-
void EnableRendererLayoutTestMode() {
RenderThreadImpl::current()->set_layout_test_mode(true);

Powered by Google App Engine
This is Rietveld 408576698