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

Side by Side Diff: device/generic_sensor/mock_platform_sensor_provider.cc

Issue 2306333002: [sensors] Add Generic Sensor platform unit tests. (Closed)
Patch Set: Generic Sensor Unittest Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698