#include "services/device/generic_sensor/fake_platform_sensor_and_provider.h"
#include <utility>
_;
Invoke;
NiceMock;
Return;
namespace device {
FakePlatformSensor::FakePlatformSensor(
mojom::SensorType type,
SensorReadingSharedBuffer* reading_buffer,
base::WeakPtr<PlatformSensorProvider> provider)
: … { … }
FakePlatformSensor::~FakePlatformSensor() = default;
bool FakePlatformSensor::CheckSensorConfiguration(
const PlatformSensorConfiguration& configuration) { … }
PlatformSensorConfiguration FakePlatformSensor::GetDefaultConfiguration() { … }
mojom::ReportingMode FakePlatformSensor::GetReportingMode() { … }
double FakePlatformSensor::GetMaximumSupportedFrequency() { … }
double FakePlatformSensor::GetMinimumSupportedFrequency() { … }
void FakePlatformSensor::AddNewReading(const SensorReading& reading) { … }
FakePlatformSensorProvider::FakePlatformSensorProvider() { … }
FakePlatformSensorProvider::~FakePlatformSensorProvider() = default;
base::WeakPtr<PlatformSensorProvider> FakePlatformSensorProvider::AsWeakPtr() { … }
SensorReadingSharedBuffer* FakePlatformSensorProvider::GetSensorReadingBuffer(
mojom::SensorType type) { … }
MockPlatformSensorClient::MockPlatformSensorClient() { … }
MockPlatformSensorClient::MockPlatformSensorClient(
scoped_refptr<PlatformSensor> sensor)
: … { … }
MockPlatformSensorClient::~MockPlatformSensorClient() { … }
}