16d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
26d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
36d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)// found in the LICENSE file.
46d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
56d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_CONNECTION_H_
66d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_CONNECTION_H_
76d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
86d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#include "device/bluetooth/bluetooth_gatt_connection.h"
96d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#include "testing/gmock/include/gmock/gmock.h"
106d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
116d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)namespace device {
126d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
136d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)class MockBluetoothGattConnection : public BluetoothGattConnection {
146d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles) public:
156d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  MockBluetoothGattConnection(const std::string& device_address);
166d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  virtual ~MockBluetoothGattConnection();
176d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
186d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  MOCK_CONST_METHOD0(GetDeviceAddress, std::string());
196d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  MOCK_METHOD0(IsConnected, bool());
206d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)  MOCK_METHOD1(Disconnect, void(const base::Closure&));
216d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)};
226d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
236d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)}  // namespace device
246d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)
256d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)#endif  // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_CONNECTION_H_
26