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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

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 | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index 45d8b7f22ba5bffcfd13289f47ab922e8b161135..a4230e986f31da2859fe3e368137f9637f3010e2 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -476,6 +476,25 @@ void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) {
void BlinkTestRunner::SetBluetoothMockDataSet(const std::string& name) {
Send(new LayoutTestHostMsg_SetBluetoothAdapter(name));
+ // Auto-reset the chooser type so we don't get order dependence when some
+ // tests forget to do it explicitly.
+ Send(new ShellViewHostMsg_SetBluetoothManualChooser(routing_id(), false));
+}
+
+void BlinkTestRunner::SetBluetoothManualChooser() {
+ Send(new ShellViewHostMsg_SetBluetoothManualChooser(routing_id(), true));
+}
+std::vector<std::string> BlinkTestRunner::GetBluetoothManualChooserEvents() {
+ std::vector<std::string> result;
+ Send(new ShellViewHostMsg_GetBluetoothManualChooserEvents(routing_id(),
+ &result));
+ return result;
+}
+void BlinkTestRunner::SendBluetoothManualChooserEvent(
+ const std::string& event,
+ const std::string& argument) {
+ Send(new ShellViewHostMsg_SendBluetoothManualChooserEvent(routing_id(), event,
+ argument));
}
void BlinkTestRunner::SetGeofencingMockProvider(bool service_available) {
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698