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

Unified Diff: content/child/geofencing/web_geofencing_provider_impl.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/web_geofencing_provider_impl.h
diff --git a/content/child/geofencing/web_geofencing_provider_impl.h b/content/child/geofencing/web_geofencing_provider_impl.h
index 9aac7951731d80ca68f90461d43f116c78e32616..f10981885ea024ed6f8bc9935b4ff9793e24b298 100644
--- a/content/child/geofencing/web_geofencing_provider_impl.h
+++ b/content/child/geofencing/web_geofencing_provider_impl.h
@@ -7,18 +7,27 @@
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
+#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebGeofencingProvider.h"
namespace content {
class GeofencingDispatcher;
class ThreadSafeSender;
-class WebGeofencingProviderImpl
+class CONTENT_EXPORT WebGeofencingProviderImpl
: NON_EXPORTED_BASE(public blink::WebGeofencingProvider) {
public:
explicit WebGeofencingProviderImpl(ThreadSafeSender* thread_safe_sender);
virtual ~WebGeofencingProviderImpl();
+ // 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);
+
private:
// WebGeofencingProvider implementation.
virtual void registerRegion(
« no previous file with comments | « content/child/geofencing/geofencing_dispatcher.cc ('k') | content/child/geofencing/web_geofencing_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698