• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #include "device/bluetooth/test/mock_bluetooth_gatt_connection.h"
6 
7 using ::testing::Return;
8 
9 namespace device {
10 
MockBluetoothGattConnection(const std::string & device_address)11 MockBluetoothGattConnection::MockBluetoothGattConnection(
12     const std::string& device_address) {
13   ON_CALL(*this, GetDeviceAddress()).WillByDefault(Return(device_address));
14   ON_CALL(*this, IsConnected()).WillByDefault(Return(true));
15 }
16 
~MockBluetoothGattConnection()17 MockBluetoothGattConnection::~MockBluetoothGattConnection() {}
18 
19 }  // namespace device
20