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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 1292263002: bluetooth: Create base class BluetoothDevice::CreateGattConnection impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-adapter-
Patch Set: fix ProximityAuthBluetoothLowEnergyConnectionTest 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 | « device/bluetooth/bluetooth_low_energy_device_mac.h ('k') | device/bluetooth/test/mock_bluetooth_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_low_energy_device_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
index bd28398d1e84322923a85c8ea75588ccc6c19ab0..99ec7cd2bb2d25ff4556bf0a99b93b2338a5795c 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -114,6 +114,10 @@ bool BluetoothLowEnergyDeviceMac::IsPaired() const {
}
bool BluetoothLowEnergyDeviceMac::IsConnected() const {
+ return IsGattConnected();
+}
+
+bool BluetoothLowEnergyDeviceMac::IsGattConnected() const {
return (GetPeripheralState() == CBPeripheralStateConnected);
}
@@ -221,6 +225,18 @@ std::string BluetoothLowEnergyDeviceMac::GetDeviceName() const {
return base::SysNSStringToUTF8([peripheral_ name]);
}
+void BluetoothLowEnergyDeviceMac::CreateGattConnectionImpl() {
+ // Mac implementation does not yet use the default CreateGattConnection
+ // implementation. http://crbug.com/520774
+ NOTIMPLEMENTED();
+}
+
+void BluetoothLowEnergyDeviceMac::DisconnectGatt() {
+ // Mac implementation does not yet use the default CreateGattConnection
+ // implementation. http://crbug.com/520774
+ NOTIMPLEMENTED();
+}
+
// static
std::string BluetoothLowEnergyDeviceMac::GetPeripheralIdentifier(
CBPeripheral* peripheral) {
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.h ('k') | device/bluetooth/test/mock_bluetooth_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698