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 base::WeakPtr<MockBlimpLocationProviderDelegate> GetWeakPtr() { | |
21 return weak_factory_.GetWeakPtr(); | |
22 } | |
23 | |
24 MOCK_METHOD1(RequestAccuracy, | |
25 void(GeolocationSetInterestLevelMessage::Level level)); | |
26 MOCK_METHOD0(OnPermissionGranted, void()); | |
27 MOCK_METHOD1(SetUpdateCallback, | |
28 void(const GeopositionReceivedCallback& callback)); | |
29 | |
30 private: | |
31 base::WeakPtrFactory<MockBlimpLocationProviderDelegate> weak_factory_; | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(MockBlimpLocationProviderDelegate); | |
34 }; | |
35 | |
36 } // namespace engine | |
37 } // namespace blimp | |
38 | |
39 #endif // BLIMP_ENGINE_FEATURE_GEOLOCATION_MOCK_BLIMP_LOCATION_PROVIDER_DELEGAT
E_H_ | |
OLD | NEW |