OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "device/generic_sensor/mock_platform_sensor.h" | |
6 #include "device/generic_sensor/mock_platform_sensor_provider.h" | |
7 | |
8 namespace device { | |
9 | |
10 // static | |
11 MockPlatformSensorProvider* MockPlatformSensorProvider::GetInstance() { | |
12 return base::Singleton< | |
13 MockPlatformSensorProvider, | |
14 base::LeakySingletonTraits<MockPlatformSensorProvider>>::get(); | |
15 } | |
16 | |
17 MockPlatformSensorProvider::MockPlatformSensorProvider() {} | |
Mikhail
2016/09/07 10:46:19
= default;
maksims (do not use this acc)
2016/09/09 10:39:06
Done.
| |
18 | |
19 MockPlatformSensorProvider::~MockPlatformSensorProvider() = default; | |
20 | |
21 scoped_refptr<PlatformSensor> MockPlatformSensorProvider::CreateSensorInternal( | |
22 mojom::SensorType type, | |
23 mojo::ScopedSharedBufferMapping mapping, | |
24 uint64_t buffer_size) { | |
25 return new MockPlatformSensor(type, std::move(mapping), buffer_size, this); | |
26 } | |
27 | |
28 } // namespace device | |
OLD | NEW |