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

Unified Diff: device/geolocation/fake_location_provider.h

Issue 2298013002: Gets rid of LocationProviderBase. (Closed)
Patch Set: Typo. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/geolocation/BUILD.gn ('k') | device/geolocation/fake_location_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/fake_location_provider.h
diff --git a/device/geolocation/fake_location_provider.h b/device/geolocation/fake_location_provider.h
index ba27e2226f4c2565da25f3c0c1e51f23e23ba6a9..4d5b1345daac5dd129dfcc55a7f000ddeab4bcff 100644
--- a/device/geolocation/fake_location_provider.h
+++ b/device/geolocation/fake_location_provider.h
@@ -11,12 +11,12 @@
#include "base/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "device/geolocation/geoposition.h"
-#include "device/geolocation/location_provider_base.h"
+#include "device/geolocation/location_provider.h"
namespace device {
// Fake implementation of a location provider for testing.
-class FakeLocationProvider : public LocationProviderBase {
+class FakeLocationProvider : public LocationProvider {
public:
enum State { STOPPED, LOW_ACCURACY, HIGH_ACCURACY } state_ = STOPPED;
@@ -30,6 +30,8 @@ class FakeLocationProvider : public LocationProviderBase {
bool is_permission_granted() const { return is_permission_granted_; }
// LocationProvider implementation.
+ void SetUpdateCallback(
+ const LocationProviderUpdateCallback& callback) override;
bool StartProvider(bool high_accuracy) override;
void StopProvider() override;
const Geoposition& GetPosition() override;
@@ -40,6 +42,7 @@ class FakeLocationProvider : public LocationProviderBase {
private:
bool is_permission_granted_ = false;
Geoposition position_;
+ LocationProviderUpdateCallback callback_;
DISALLOW_COPY_AND_ASSIGN(FakeLocationProvider);
};
« no previous file with comments | « device/geolocation/BUILD.gn ('k') | device/geolocation/fake_location_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698