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

Unified Diff: content/public/test/layouttest_support.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/content_common.gypi ('k') | content/shell/renderer/layout_test/webkit_test_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/layouttest_support.h
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h
index 4f8994a553fadf5a75f45a7b924d44bf016f3cd5..8e75dfefead4b97917abf9f153955b34e96254e0 100644
--- a/content/public/test/layouttest_support.h
+++ b/content/public/test/layouttest_support.h
@@ -96,6 +96,17 @@ void SetDeviceColorProfile(RenderView* render_view, const std::string& name);
// Change the bluetooth test data while running a layout test.
void SetBluetoothMockDataSetForTesting(const std::string& name);
+// Enables mock geofencing service while running a layout test.
+// |service_available| indicates if the mock service should mock geofencing
+// being available or not.
+void SetGeofencingMockProvider(bool service_available);
+
+// Disables mock geofencing service while running a layout test.
+void ClearGeofencingMockProvider();
+
+// Set the mock geofencing position while running a layout test.
+void SetGeofencingMockPosition(double latitude, double longitude);
+
// Enables or disables synchronous resize mode. When enabled, all window-sizing
// machinery is short-circuited inside the renderer. This mode is necessary for
// some tests that were written before browsers had multi-process architecture
« no previous file with comments | « content/content_common.gypi ('k') | content/shell/renderer/layout_test/webkit_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698