#include "content/web_test/browser/web_test_sensor_provider_manager.h"
#include "base/notreached.h"
#include "content/browser/generic_sensor/web_contents_sensor_provider_proxy.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/web_contents.h"
namespace content {
WebTestSensorProviderManager::WebTestSensorProviderManager(
WebContents* web_contents)
: … { … }
WebTestSensorProviderManager::~WebTestSensorProviderManager() = default;
void WebTestSensorProviderManager::Bind(
mojo::PendingReceiver<blink::test::mojom::WebSensorProviderAutomation>
receiver) { … }
void WebTestSensorProviderManager::CreateVirtualSensor(
device::mojom::SensorType type,
device::mojom::VirtualSensorMetadataPtr metadata,
device::mojom::SensorProvider::CreateVirtualSensorCallback callback) { … }
void WebTestSensorProviderManager::UpdateVirtualSensor(
device::mojom::SensorType type,
const device::SensorReading& reading,
device::mojom::SensorProvider::UpdateVirtualSensorCallback callback) { … }
void WebTestSensorProviderManager::RemoveVirtualSensor(
device::mojom::SensorType type,
device::mojom::SensorProvider::RemoveVirtualSensorCallback callback) { … }
void WebTestSensorProviderManager::GetVirtualSensorInformation(
device::mojom::SensorType type,
device::mojom::SensorProvider::GetVirtualSensorInformationCallback
callback) { … }
}