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_PROVIDER_H_ | 5 #ifndef SERVICES_DEVICE_GENERIC_SENSOR_FAKE_PLATFORM_SENSOR_PROVIDER_H_ |
6 #define DEVICE_GENERIC_SENSOR_FAKE_PLATFORM_SENSOR_PROVIDER_H_ | 6 #define SERVICES_DEVICE_GENERIC_SENSOR_FAKE_PLATFORM_SENSOR_PROVIDER_H_ |
7 | 7 |
8 #include "device/generic_sensor/platform_sensor_provider.h" | 8 #include "services/device/generic_sensor/platform_sensor_provider.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 | 10 |
11 namespace device { | 11 namespace device { |
12 | 12 |
13 class FakePlatformSensorProvider : public PlatformSensorProvider { | 13 class FakePlatformSensorProvider : public PlatformSensorProvider { |
14 public: | 14 public: |
15 FakePlatformSensorProvider(); | 15 FakePlatformSensorProvider(); |
16 ~FakePlatformSensorProvider() override; | 16 ~FakePlatformSensorProvider() override; |
17 | 17 |
18 MOCK_METHOD0(AllSensorsRemoved, void()); | 18 MOCK_METHOD0(AllSensorsRemoved, void()); |
19 | 19 |
20 protected: | 20 protected: |
21 void CreateSensorInternal(mojom::SensorType type, | 21 void CreateSensorInternal(mojom::SensorType type, |
22 mojo::ScopedSharedBufferMapping mapping, | 22 mojo::ScopedSharedBufferMapping mapping, |
23 const CreateSensorCallback& callback) override; | 23 const CreateSensorCallback& callback) override; |
24 | 24 |
25 private: | 25 private: |
26 DISALLOW_COPY_AND_ASSIGN(FakePlatformSensorProvider); | 26 DISALLOW_COPY_AND_ASSIGN(FakePlatformSensorProvider); |
27 }; | 27 }; |
28 | 28 |
29 } // namespace device | 29 } // namespace device |
30 | 30 |
31 #endif // DEVICE_GENERIC_SENSOR_MOCK_PLATFORM_SENSOR_PROVIDER_H_ | 31 #endif // SERVICES_DEVICE_GENERIC_SENSOR_MOCK_PLATFORM_SENSOR_PROVIDER_H_ |
OLD | NEW |