Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Unified Diff: device/generic_sensor/platform_sensor_provider_unittest.cc

Issue 2395853003: [Sensors] Improvements in shared buffer managing (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698