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

Side by Side Diff: content/browser/geolocation/mock_location_arbitrator.h

Issue 11412194: Cleanup: MockGeolocationArbitrator for GeolocationProvider tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Clang error. Created 8 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_ARBITRATOR_H_
6 #define CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_ARBITRATOR_H_
7
8 #include "base/compiler_specific.h"
9 #include "content/browser/geolocation/location_arbitrator.h"
10
11 namespace content {
12
13 struct Geoposition;
14
15 class MockGeolocationArbitrator : public GeolocationArbitrator {
16 public:
17 MockGeolocationArbitrator();
18
19 bool providers_started() const { return providers_started_; }
20
21 // GeolocationArbitrator:
22 virtual void StartProviders(const GeolocationObserverOptions& options)
23 OVERRIDE;
24 virtual void StopProviders() OVERRIDE;
25 virtual void OnPermissionGranted() OVERRIDE;
26 virtual bool HasPermissionBeenGranted() const OVERRIDE;
27
28 private:
29
bulach 2012/11/28 19:35:59 nit: remove \n
John Knottenbelt 2012/11/29 17:31:01 Done.
30 bool permission_granted_;
31 bool providers_started_;
bulach 2012/11/28 19:35:59 nit: \n DISALLOW_COPY_AND_ASSIGN(MockGeolocationAr
John Knottenbelt 2012/11/29 17:31:01 Done.
32 };
33
34 };
bulach 2012/11/28 19:35:59 nit: s/;/ // namespace content
John Knottenbelt 2012/11/29 17:31:01 Done.
35
36 #endif // CONTENT_BROWSER_GEOLOCATION_MOCK_LOCATION_ARBITRATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698