Make castv2 performance test work.
[chromium-blink-merge.git] / device / bluetooth / bluetooth_channel_mac.mm
blob50f31b991fc3655445a1e9ccb4a49bf6dd129373
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "device/bluetooth/bluetooth_channel_mac.h"
7 #import <IOBluetooth/IOBluetooth.h>
9 #include "base/logging.h"
10 #include "device/bluetooth/bluetooth_device_mac.h"
12 namespace device {
14 BluetoothChannelMac::BluetoothChannelMac() : socket_(NULL) {
17 BluetoothChannelMac::~BluetoothChannelMac() {
20 void BluetoothChannelMac::SetSocket(BluetoothSocketMac* socket) {
21   DCHECK(!socket_);
22   socket_ = socket;
25 std::string BluetoothChannelMac::GetDeviceAddress() {
26   return BluetoothDeviceMac::GetDeviceAddress(GetDevice());
29 }  // namespace device