Index: device/generic_sensor/platform_sensor_provider_unittest.cc |
diff --git a/device/generic_sensor/platform_sensor_provider_unittest.cc b/device/generic_sensor/platform_sensor_provider_unittest.cc |
index b63b6f85f0153528ba214351fd2a4c3589df5337..b2b03cd9f227e4ad222e866ef8a659dabbadc211 100644 |
--- a/device/generic_sensor/platform_sensor_provider_unittest.cc |
+++ b/device/generic_sensor/platform_sensor_provider_unittest.cc |
@@ -13,16 +13,6 @@ namespace device { |
using mojom::SensorInitParams; |
using mojom::SensorType; |
-namespace { |
- |
-uint64_t GetBufferOffset(mojom::SensorType type) { |
- return (static_cast<uint64_t>(SensorType::LAST) - |
- static_cast<uint64_t>(type)) * |
- SensorInitParams::kReadBufferSize; |
-} |
- |
-} // namespace |
- |
class PlatformSensorTestClient : public PlatformSensor::Client { |
public: |
PlatformSensorTestClient() |
@@ -69,8 +59,7 @@ class PlatformSensorProviderTest : public ::testing::Test { |
protected: |
scoped_refptr<PlatformSensor> CreateSensor(mojom::SensorType type) { |
- return FakePlatformSensorProvider::GetInstance()->CreateSensor( |
- type, SensorInitParams::kReadBufferSize, GetBufferOffset(type)); |
+ return FakePlatformSensorProvider::GetInstance()->CreateSensor(type); |
} |
std::unique_ptr<PlatformSensorTestClient> sensor_client_; |