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

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: 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/public/test/layouttest_support.h
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h
index 4f8994a553fadf5a75f45a7b924d44bf016f3cd5..7fdd00bfc6eee01469dbeb2eced177fac2496e88 100644
--- a/content/public/test/layouttest_support.h
+++ b/content/public/test/layouttest_support.h
@@ -96,6 +96,15 @@ 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

Powered by Google App Engine
This is Rietveld 408576698