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

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: 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/shell/renderer/test_runner/test_runner.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..cb31881a50591e9c46074b72a942f83098c5b310 100644
--- a/content/shell/renderer/test_runner/web_test_delegate.h
+++ b/content/shell/renderer/test_runner/web_test_delegate.h
@@ -153,6 +153,17 @@ 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.
+ 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;
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698