| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/string16.h" | |
| 11 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h" | |
| 12 #include "testing/gmock/include/gmock/gmock.h" | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 class MockBluetoothDevice : public BluetoothDevice { | |
| 17 public: | |
| 18 MockBluetoothDevice(MockBluetoothAdapter* adapter, | |
| 19 const std::string& name, | |
| 20 const std::string& address, | |
| 21 bool paired, | |
| 22 bool bonded, | |
| 23 bool connected); | |
| 24 virtual ~MockBluetoothDevice(); | |
| 25 | |
| 26 MOCK_CONST_METHOD0(address, const std::string&()); | |
| 27 MOCK_CONST_METHOD0(GetName, string16()); | |
| 28 MOCK_CONST_METHOD0(IsPaired, bool()); | |
| 29 MOCK_CONST_METHOD0(IsBonded, bool()); | |
| 30 MOCK_CONST_METHOD0(IsConnected, bool()); | |
| 31 MOCK_CONST_METHOD1(ProvidesServiceWithUUID, bool(const std::string&)); | |
| 32 | |
| 33 MOCK_METHOD3(SetOutOfBandPairingData, | |
| 34 void(const chromeos::BluetoothOutOfBandPairingData& data, | |
| 35 const base::Closure& callback, | |
| 36 const BluetoothDevice::ErrorCallback& error_callback)); | |
| 37 MOCK_METHOD2(ClearOutOfBandPairingData, | |
| 38 void(const base::Closure& callback, | |
| 39 const BluetoothDevice::ErrorCallback& error_callback)); | |
| 40 | |
| 41 private: | |
| 42 string16 name_; | |
| 43 std::string address_; | |
| 44 }; | |
| 45 | |
| 46 } // namespace chromeos | |
| 47 | |
| 48 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | |
| OLD | NEW |