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

Unified Diff: content/shell/renderer/test_runner/web_test_delegate.h

Issue 701953007: Expose mock geofencing service via testRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: expose via testRunner and make mock global 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/shell/renderer/test_runner/web_test_delegate.h
diff --git a/content/shell/renderer/test_runner/web_test_delegate.h b/content/shell/renderer/test_runner/web_test_delegate.h
index 6e44ceeb12c2ffa42b71106449932e4446144c50..73a37596e80f4bc925e750c2c21e813be2f86cd6 100644
--- a/content/shell/renderer/test_runner/web_test_delegate.h
+++ b/content/shell/renderer/test_runner/web_test_delegate.h
@@ -153,6 +153,15 @@ class WebTestDelegate {
// Change the bluetooth test data while running a layout test.
virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0;
+ // Enables mock geofencing service while running a layout test.
+ // |service_available| indicates if the mock service should mock geofencing
+ // being available or not.
+ virtual void SetGeofencingMockProvider(bool service_available) = 0;
+ // Disables mock geofencing service while running a layout test.
pfeldman 2014/12/10 08:59:52 ditto
Marijn Kruisselbrink 2014/12/10 18:13:37 Done.
+ virtual void ClearGeofencingMockProvider() = 0;
+ // Set the mock geofencing position while running a layout test.
+ virtual void SetGeofencingMockPosition(double latitude, double longitude) = 0;
+
// Controls which WebView should be focused.
virtual void SetFocus(WebTestProxyBase* proxy, bool focus) = 0;

Powered by Google App Engine
This is Rietveld 408576698