Commit 317ea1dd authored by Junbo Ke's avatar Junbo Ke Committed by Commit Bot

[Chromecast] Dummy implementation of BluetoothAdapter::ConnectDevice.

Bug: b/172062828
Test: Build
Change-Id: Ia17478fd5d2db2d7d4e0d55d70a465d5c1dc07a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2510879Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Commit-Queue: Junbo Ke <juke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#822855}
parent a09f8543
......@@ -175,6 +175,15 @@ void BluetoothAdapterCast::SetAdvertisingInterval(
.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM);
}
void BluetoothAdapterCast::ConnectDevice(
const std::string& address,
const base::Optional<BluetoothDevice::AddressType>& address_type,
ConnectDeviceCallback callback,
ErrorCallback error_callback) {
NOTIMPLEMENTED() << __func__ << " GATT server mode not supported";
std::move(error_callback).Run();
}
void BluetoothAdapterCast::ResetAdvertising(
base::OnceClosure callback,
AdvertisementErrorCallback error_callback) {
......
......@@ -86,6 +86,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterCast
AdvertisementErrorCallback error_callback) override;
void ResetAdvertising(base::OnceClosure callback,
AdvertisementErrorCallback error_callback) override;
void ConnectDevice(
const std::string& address,
const base::Optional<BluetoothDevice::AddressType>& address_type,
ConnectDeviceCallback callback,
ErrorCallback error_callback) override;
BluetoothLocalGattService* GetGattService(
const std::string& identifier) const override;
base::WeakPtr<BluetoothAdapter> GetWeakPtr() override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment