// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_DEVICE_GENERIC_SENSOR_VIRTUAL_PLATFORM_SENSOR_PROVIDER_H_ #define SERVICES_DEVICE_GENERIC_SENSOR_VIRTUAL_PLATFORM_SENSOR_PROVIDER_H_ #include "base/containers/flat_map.h" #include "base/memory/weak_ptr.h" #include "services/device/generic_sensor/platform_sensor_provider.h" #include "services/device/public/mojom/sensor_provider.mojom-forward.h" namespace device { // OS-agnostic PlatformSensorProvider implementation used in (web) tests. Used // together with SensorProviderImpl in order to override one or more sensor // types. Calls to GetSensor() will, upon success, always create // VirtualPlatformSensor instances. class VirtualPlatformSensorProvider : public PlatformSensorProvider { … }; } // namespace device #endif // SERVICES_DEVICE_GENERIC_SENSOR_VIRTUAL_PLATFORM_SENSOR_PROVIDER_H_