blob: 9f25f20726e7bb12575314cdb1fed48b11b870e6 [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.
#include "device/vr/test/fake_orientation_provider.h"
#include "services/device/public/mojom/sensor.mojom.h"
namespace device {
FakeOrientationSensor::FakeOrientationSensor(
mojo::PendingReceiver<mojom::Sensor> receiver)
: receiver_(this, std::move(receiver)) {}
FakeOrientationSensor::~FakeOrientationSensor() = default;
// The called functions
void FakeOrientationSensor::AddConfiguration(
const PlatformSensorConfiguration& configuration,
AddConfigurationCallback callback) {
std::move(callback).Run(true);
}
} // namespace device