| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_GENERIC_SENSOR_FAKE_PLATFORM_SENSOR_H_ | 5 #ifndef SERVICES_DEVICE_GENERIC_SENSOR_FAKE_PLATFORM_SENSOR_H_ |
| 6 #define DEVICE_GENERIC_SENSOR_FAKE_PLATFORM_SENSOR_H_ | 6 #define SERVICES_DEVICE_GENERIC_SENSOR_FAKE_PLATFORM_SENSOR_H_ |
| 7 | 7 |
| 8 #include "device/generic_sensor/platform_sensor.h" | 8 #include "services/device/generic_sensor/platform_sensor.h" |
| 9 | 9 |
| 10 namespace device { | 10 namespace device { |
| 11 | 11 |
| 12 class FakePlatformSensor : public PlatformSensor { | 12 class FakePlatformSensor : public PlatformSensor { |
| 13 public: | 13 public: |
| 14 FakePlatformSensor(mojom::SensorType type, | 14 FakePlatformSensor(mojom::SensorType type, |
| 15 mojo::ScopedSharedBufferMapping mapping, | 15 mojo::ScopedSharedBufferMapping mapping, |
| 16 PlatformSensorProvider* provider); | 16 PlatformSensorProvider* provider); |
| 17 | 17 |
| 18 mojom::ReportingMode GetReportingMode() override; | 18 mojom::ReportingMode GetReportingMode() override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 PlatformSensorConfiguration config_; | 37 PlatformSensorConfiguration config_; |
| 38 | 38 |
| 39 bool started_; | 39 bool started_; |
| 40 | 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(FakePlatformSensor); | 41 DISALLOW_COPY_AND_ASSIGN(FakePlatformSensor); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace device | 44 } // namespace device |
| 45 | 45 |
| 46 #endif // DEVICE_GENERIC_SENSOR_FAKE_PLATFORM_SENSOR_H | 46 #endif // SERVICES_DEVICE_GENERIC_SENSOR_FAKE_PLATFORM_SENSOR_H |
| OLD | NEW |