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

Side by Side Diff: device/geolocation/mock_location_provider.h

Issue 2249283003: Hooks together Geolocation Feature in the Client and Engine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lai
Patch Set: Addresses nyquist's #9 comments. Created 4 years, 4 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
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_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_ 5 #ifndef DEVICE_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_
6 #define DEVICE_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_ 6 #define DEVICE_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_
7 7
8 #include "device/geolocation/geoposition.h" 8 #include "device/geolocation/geoposition.h"
9 #include "device/geolocation/location_provider.h" 9 #include "device/geolocation/location_provider.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace device { 12 namespace device {
13 13
14 class MockLocationProvider : public device::LocationProvider { 14 class MockLocationProvider : public device::LocationProvider {
15 public: 15 public:
16 MockLocationProvider(); 16 MockLocationProvider();
17 ~MockLocationProvider() override; 17 ~MockLocationProvider() override;
18 18
19 MOCK_METHOD1(SetUpdateCallback, 19 MOCK_METHOD1(SetUpdateCallback,
20 void(const LocationProviderUpdateCallback& callback)); 20 void(const LocationProviderUpdateCallback& callback));
21 MOCK_METHOD1(StartProvider, bool(bool high_accuracy)); 21 MOCK_METHOD1(StartProvider, bool(bool high_accuracy));
22 MOCK_METHOD0(StopProvider, void()); 22 MOCK_METHOD0(StopProvider, void());
23 MOCK_METHOD0(GetPosition, const device::Geoposition&()); 23 MOCK_METHOD0(GetPosition, const Geoposition&());
24 MOCK_METHOD0(RequestRefresh, void()); 24 MOCK_METHOD0(RequestRefresh, void());
25 MOCK_METHOD0(OnPermissionGranted, void()); 25 MOCK_METHOD0(OnPermissionGranted, void());
26 26
27 private: 27 private:
28 DISALLOW_COPY_AND_ASSIGN(MockLocationProvider); 28 DISALLOW_COPY_AND_ASSIGN(MockLocationProvider);
29 }; 29 };
30 30
31 } // namespace device 31 } // namespace device
32 32
33 #endif // DEVICE_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_ 33 #endif // DEVICE_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_
OLDNEW
« device/geolocation/location_arbitrator_impl.h ('K') | « device/geolocation/location_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698