blob: 6eeed9e4cfd7c474d698a4ba23164016c2227bc1 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEVICE_VR_TEST_FAKE_ORIENTATION_PROVIDER_H_
#define DEVICE_VR_TEST_FAKE_ORIENTATION_PROVIDER_H_
#include "mojo/public/cpp/bindings/binding.h"
#include "services/device/public/mojom/sensor.mojom.h"
namespace device {
class FakeOrientationSensor : public mojom::Sensor {
public:
FakeOrientationSensor(mojom::SensorRequest request);
~FakeOrientationSensor() override;
void AddConfiguration(const PlatformSensorConfiguration& configuration,
AddConfigurationCallback callback) override;
void ConfigureReadingChangeNotifications(bool enabled) override {}
void GetDefaultConfiguration(
GetDefaultConfigurationCallback callback) override {}
void RemoveConfiguration(
const PlatformSensorConfiguration& configuration) override {}
void Suspend() override {}
void Resume() override {}
private:
mojo::Binding<mojom::Sensor> binding_;
DISALLOW_COPY_AND_ASSIGN(FakeOrientationSensor);
};
} // namespace device
#endif // DEVICE_VR_TEST_FAKE_ORIENTATION_PROVIDER_H_