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

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: 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
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..269dfe7c031f4b28fbfed0f63728ed8032dc0c13 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 {
@@ -46,6 +46,14 @@ class GeofencingDispatcher : public WorkerTaskRunner::Observer {
blink::WebServiceWorkerRegistration* service_worker_registration,
blink::WebGeofencingRegionsCallbacks* callbacks);
+ // Enables mock geofencing service. |service_available| indicates if the
+ // mock service should mock geofencing being available or not.
+ void SetMockProvider(bool service_available);
+ // Disables mock geofencing service.
+ void ClearMockProvider();
+ // Set the mock geofencing position.
+ void SetMockPosition(double latitude, double longitude);
+
// |thread_safe_sender| needs to be passed in because if the call leads to
// construction it will be needed.
static GeofencingDispatcher* GetOrCreateThreadSpecificInstance(
« no previous file with comments | « content/browser/geofencing/mock_geofencing_service.cc ('k') | content/child/geofencing/geofencing_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698