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

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: Merge with master. 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
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(OnPermissionGranted, void()); 24 MOCK_METHOD0(OnPermissionGranted, void());
25 25
26 private: 26 private:
27 DISALLOW_COPY_AND_ASSIGN(MockLocationProvider); 27 DISALLOW_COPY_AND_ASSIGN(MockLocationProvider);
28 }; 28 };
29 29
30 } // namespace device 30 } // namespace device
31 31
32 #endif // DEVICE_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_ 32 #endif // DEVICE_GEOLOCATION_MOCK_LOCATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698