blob: 3d8a1f755bcdfe5707ead350da237242dd6c9143 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/bluetooth/test/mock_bluetooth_gatt_connection.h"
#include "device/bluetooth/bluetooth_adapter.h"
using ::testing::Return;
namespace device {
MockBluetoothGattConnection::MockBluetoothGattConnection(
scoped_refptr<device::BluetoothAdapter> adapter,
const std::string& device_address)
: BluetoothGattConnection(adapter, device_address) {
ON_CALL(*this, GetDeviceAddress()).WillByDefault(Return(device_address));
ON_CALL(*this, IsConnected()).WillByDefault(Return(true));
}
MockBluetoothGattConnection::~MockBluetoothGattConnection() {}
} // namespace device
|