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

Unified Diff: components/test_runner/web_test_delegate.h

Issue 1325953002: Add functions to let tests read and control the Bluetooth chooser state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Add a forgotten semicolon. :-/ Created 5 years, 3 months 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 | « components/test_runner/test_runner.cc ('k') | content/content_shell.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_delegate.h
diff --git a/components/test_runner/web_test_delegate.h b/components/test_runner/web_test_delegate.h
index ef7c7d43dc9a4c0d8dfc0f45d12d12e05fcf24ba..190618059bf6f53936a04e997fad4496f5d27f35 100644
--- a/components/test_runner/web_test_delegate.h
+++ b/components/test_runner/web_test_delegate.h
@@ -161,6 +161,21 @@ class WebTestDelegate {
// Change the bluetooth test data while running a layout test.
virtual void SetBluetoothMockDataSet(const std::string& data_set) = 0;
+ // Makes the Bluetooth chooser record its input and wait for instructions from
+ // the test program on how to proceed.
+ virtual void SetBluetoothManualChooser() = 0;
+
+ // Returns the events recorded since the last call to this function.
+ virtual std::vector<std::string> GetBluetoothManualChooserEvents() = 0;
+
+ // Calls the BluetoothChooser::EventHandler with the arguments here. Valid
+ // event strings are:
+ // * "cancel" - simulates the user canceling the chooser.
+ // * "select" - simulates the user selecting a device whose device ID is in
+ // |argument|.
+ virtual void SendBluetoothManualChooserEvent(const std::string& event,
+ const std::string& argument) = 0;
+
// Enables mock geofencing service while running a layout test.
// |service_available| indicates if the mock service should mock geofencing
// being available or not.
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | content/content_shell.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698