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

Unified Diff: content/child/geofencing/geofencing_dispatcher.h

Issue 701953007: Expose mock geofencing service via testRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/child/geofencing/geofencing_dispatcher.h
diff --git a/content/child/geofencing/geofencing_dispatcher.h b/content/child/geofencing/geofencing_dispatcher.h
index 57a2a437b5da9d3c40340f3ec102de8f6c38d2f8..f872697eddbf3f166a10e8cc1170d52fb6dcc40c 100644
--- a/content/child/geofencing/geofencing_dispatcher.h
+++ b/content/child/geofencing/geofencing_dispatcher.h
@@ -9,7 +9,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "content/child/worker_task_runner.h"
-#include "content/common/geofencing_status.h"
+#include "content/common/geofencing_types.h"
#include "third_party/WebKit/public/platform/WebGeofencingProvider.h"
namespace base {
@@ -45,6 +45,15 @@ class GeofencingDispatcher : public WorkerTaskRunner::Observer {
void GetRegisteredRegions(
blink::WebServiceWorkerRegistration* service_worker_registration,
blink::WebGeofencingRegionsCallbacks* callbacks);
+ void SetMockProvider(
+ blink::WebServiceWorkerRegistration* service_worker_registration,
+ bool service_available);
+ void ClearMockProvider(
+ blink::WebServiceWorkerRegistration* service_worker_registration);
+ void SetMockPosition(
+ blink::WebServiceWorkerRegistration* service_worker_registration,
+ double latitude,
+ double longitude);
// |thread_safe_sender| needs to be passed in because if the call leads to
// construction it will be needed.

Powered by Google App Engine
This is Rietveld 408576698