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

Unified Diff: content/child/geofencing/web_geofencing_provider_impl.cc

Issue 701953007: Expose mock geofencing service via testRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mention unifying bug in a comment Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/geofencing/web_geofencing_provider_impl.h ('k') | content/common/geofencing_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/geofencing/web_geofencing_provider_impl.cc
diff --git a/content/child/geofencing/web_geofencing_provider_impl.cc b/content/child/geofencing/web_geofencing_provider_impl.cc
index 5d78b9810b805d8f9ebb830ae7d131e55ab8322a..5a475a4ebce71c4c251a90f5b6bf488d03a79215 100644
--- a/content/child/geofencing/web_geofencing_provider_impl.cc
+++ b/content/child/geofencing/web_geofencing_provider_impl.cc
@@ -17,6 +17,19 @@ WebGeofencingProviderImpl::WebGeofencingProviderImpl(
WebGeofencingProviderImpl::~WebGeofencingProviderImpl() {
}
+void WebGeofencingProviderImpl::SetMockProvider(bool service_available) {
+ GetDispatcher()->SetMockProvider(service_available);
+}
+
+void WebGeofencingProviderImpl::ClearMockProvider() {
+ GetDispatcher()->ClearMockProvider();
+}
+
+void WebGeofencingProviderImpl::SetMockPosition(double latitude,
+ double longitude) {
+ GetDispatcher()->SetMockPosition(latitude, longitude);
+}
+
void WebGeofencingProviderImpl::registerRegion(
const blink::WebString& regionId,
const blink::WebCircularGeofencingRegion& region,
« no previous file with comments | « content/child/geofencing/web_geofencing_provider_impl.h ('k') | content/common/geofencing_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698