Index: content/renderer/device_sensors/device_orientation_event_pump_unittest.cc |
diff --git a/content/renderer/device_sensors/device_orientation_event_pump_unittest.cc b/content/renderer/device_sensors/device_orientation_event_pump_unittest.cc |
index e0c456324c511314f5a5f74dec6e55bce4939c5c..692c6d30ac73bf8504e8ee693e86e16e261f3ec2 100644 |
--- a/content/renderer/device_sensors/device_orientation_event_pump_unittest.cc |
+++ b/content/renderer/device_sensors/device_orientation_event_pump_unittest.cc |
@@ -46,14 +46,15 @@ class MockDeviceOrientationListener |
class DeviceOrientationEventPumpForTesting : public DeviceOrientationEventPump { |
public: |
- DeviceOrientationEventPumpForTesting() { } |
+ DeviceOrientationEventPumpForTesting() |
+ : DeviceOrientationEventPump(0) { } |
virtual ~DeviceOrientationEventPumpForTesting() { } |
void OnDidStart(base::SharedMemoryHandle renderer_handle) { |
DeviceOrientationEventPump::OnDidStart(renderer_handle); |
} |
- virtual bool SendStartMessage() OVERRIDE { return true; } |
- virtual bool SendStopMessage() OVERRIDE { return true; } |
+ virtual void SendStartMessage() OVERRIDE { } |
+ virtual void SendStopMessage() OVERRIDE { } |
virtual void FireEvent() OVERRIDE { |
DeviceOrientationEventPump::FireEvent(); |
Stop(); |
@@ -124,7 +125,7 @@ TEST_F(DeviceOrientationEventPumpTest, MAYBE_DidStartPolling) { |
base::MessageLoop loop; |
InitBuffer(); |
- orientation_pump()->SetListener(listener()); |
+ orientation_pump()->Start(listener()); |
orientation_pump()->OnDidStart(handle()); |
base::MessageLoop::current()->Run(); |
@@ -150,7 +151,7 @@ TEST_F(DeviceOrientationEventPumpTest, MAYBE_FireAllNullEvent) { |
base::MessageLoop loop; |
InitBufferNoData(); |
- orientation_pump()->SetListener(listener()); |
+ orientation_pump()->Start(listener()); |
orientation_pump()->OnDidStart(handle()); |
base::MessageLoop::current()->Run(); |
@@ -176,7 +177,7 @@ TEST_F(DeviceOrientationEventPumpTest, |
base::MessageLoop loop; |
InitBuffer(); |
- orientation_pump()->SetListener(listener()); |
+ orientation_pump()->Start(listener()); |
orientation_pump()->OnDidStart(handle()); |
base::MessageLoop::current()->Run(); |