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

Unified Diff: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc

Issue 2178853006: bluetooth: fuzzer: Add a connect and getPrimaryServices tokens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-fuzzer-fake-adapter-uuid
Patch Set: Format Created 4 years, 5 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
Index: content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
index 53dfa252bd1a933653dd6b15bc160dea1bf931c0..930f9dd4c454c0c53cf6a8ea676639e09c304f95 100644
--- a/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc
@@ -653,6 +653,10 @@ LayoutTestBluetoothAdapterProvider::GetBaseDevice(
.WillByDefault(
Invoke(device.get(), &MockBluetoothDevice::GetMockService));
+ ON_CALL(*device, CreateGattConnection(_, _))
+ .WillByDefault(RunCallback<1 /* error_callback */>(
+ BluetoothDevice::ERROR_UNSUPPORTED_DEVICE));
+
return device;
}

Powered by Google App Engine
This is Rietveld 408576698