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

Side by Side Diff: blimp/engine/feature/geolocation/mock_blimp_location_provider_delegate.h

Issue 2091023006: Adds EngineGeolocationFeature for Blimp Geolocation project. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with head Created 4 years, 5 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 #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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698