virtual ~MockDeviceOrientationListener() { }
virtual void didChangeDeviceOrientation(
- const blink::WebDeviceOrientationData& data) OVERRIDE {
+ const blink::WebDeviceOrientationData& data) override {
memcpy(&data_, &data, sizeof(data));
did_change_device_orientation_ = true;
}
public:
DeviceOrientationEventPumpForTesting()
: DeviceOrientationEventPump(0) { }
- virtual ~DeviceOrientationEventPumpForTesting() { }
+ ~DeviceOrientationEventPumpForTesting() override {}
void OnDidStart(base::SharedMemoryHandle renderer_handle) {
DeviceOrientationEventPump::OnDidStart(renderer_handle);
}
- virtual void SendStartMessage() OVERRIDE { }
- virtual void SendStopMessage() OVERRIDE { }
- virtual void FireEvent() OVERRIDE {
+ void SendStartMessage() override {}
+ void SendStopMessage() override {}
+ void FireEvent() override {
DeviceOrientationEventPump::FireEvent();
Stop();
base::MessageLoop::current()->QuitWhenIdle();
}
protected:
- virtual void SetUp() OVERRIDE {
+ void SetUp() override {
const DeviceOrientationHardwareBuffer* null_buffer = NULL;
listener_.reset(new MockDeviceOrientationListener);
orientation_pump_.reset(new DeviceOrientationEventPumpForTesting);