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

Unified Diff: device/bluetooth/bluetooth_device_mac.h

Issue 1685963003: Adding the last test related with connect/disconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connectdisconnect
Patch Set: adding DEVICE_BLUETOOTH_EXPORT to BluetoothDeviceMac Created 4 years, 9 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_adapter_mac.mm ('k') | device/bluetooth/bluetooth_device_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_mac.h
diff --git a/device/bluetooth/bluetooth_device_mac.h b/device/bluetooth/bluetooth_device_mac.h
index ceb8515e8fe2700b263f0b41d77331c20de62ec0..0124eac3d7f793e9981a8bb7000afc0fe46a0989 100644
--- a/device/bluetooth/bluetooth_device_mac.h
+++ b/device/bluetooth/bluetooth_device_mac.h
@@ -14,7 +14,7 @@ namespace device {
class BluetoothAdapterMac;
-class BluetoothDeviceMac : public BluetoothDevice {
+class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceMac : public BluetoothDevice {
public:
~BluetoothDeviceMac() override;
@@ -22,6 +22,12 @@ class BluetoothDeviceMac : public BluetoothDevice {
// nil if the device has never been seen.
virtual NSDate* GetLastUpdateTime() const = 0;
+ // Converts between ConnectErrorCode and NSError.
+ static NSError* GetNSErrorFromConnectErrorCode(
+ BluetoothDevice::ConnectErrorCode error_code);
+ static BluetoothDevice::ConnectErrorCode GetConnectErrorCodeFromNSError(
+ NSError* error);
+
protected:
BluetoothDeviceMac(BluetoothAdapterMac* adapter);
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698