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

Unified Diff: content/shell/renderer/test_runner/test_runner.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/shell/renderer/test_runner/test_runner.h
diff --git a/content/shell/renderer/test_runner/test_runner.h b/content/shell/renderer/test_runner/test_runner.h
index f8b0b8f53ca612e4f9fe762fec70be3dcab72188..c7e4eeab64732998d0829ad636bd2c95b319c2e5 100644
--- a/content/shell/renderer/test_runner/test_runner.h
+++ b/content/shell/renderer/test_runner/test_runner.h
@@ -510,6 +510,17 @@ class TestRunner : public WebTestRunner,
// Change the bluetooth test data while running a layout test.
void SetBluetoothMockDataSet(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);
+
// Calls setlocale(LC_ALL, ...) for a specified locale.
// Resets between tests.
void SetPOSIXLocale(const std::string& locale);
« no previous file with comments | « content/shell/renderer/layout_test/webkit_test_runner.cc ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698