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

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

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698