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) { |