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 #ifndef BLIMP_ENGINE_FEATURE_GEOLOCATION_MOCK_BLIMP_LOCATION_PROVIDER_DELEGATE_H _ | |
6 #define BLIMP_ENGINE_FEATURE_GEOLOCATION_MOCK_BLIMP_LOCATION_PROVIDER_DELEGATE_H _ | |
7 | |
8 #include "blimp/engine/feature/geolocation/blimp_location_provider.h" | |
9 #include "testing/gmock/include/gmock/gmock.h" | |
10 | |
11 namespace blimp { | |
12 namespace engine { | |
13 | |
14 class MockBlimpLocationProviderDelegate | |
15 : public BlimpLocationProvider::Delegate { | |
16 public: | |
17 MockBlimpLocationProviderDelegate(); | |
18 ~MockBlimpLocationProviderDelegate(); | |
19 | |
20 MOCK_METHOD1(RequestAccuracy, | |
21 void(GeolocationSetInterestLevelMessage::Level level)); | |
22 MOCK_METHOD0(RequestRefresh, void()); | |
23 MOCK_METHOD1( | |
24 SetUpdateCallback, | |
25 void(const base::Callback<void(const content::Geoposition&)>& callback)); | |
26 | |
27 base::WeakPtrFactory<MockBlimpLocationProviderDelegate> weak_factory_; | |
Kevin M
2016/07/19 16:01:42
Move this into the test
CJ
2016/07/19 20:35:58
Little confused about this suggestion. Why would o
| |
28 }; | |
29 | |
30 } // namespace engine | |
31 } // namespace blimp | |
32 | |
33 #endif // BLIMP_ENGINE_FEATURE_GEOLOCATION_MOCK_BLIMP_LOCATION_PROVIDER_DELEGAT E_H_ | |
OLD | NEW |