OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
6 #include "chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h" | 6 #include "device/bluetooth/test/mock_bluetooth_adapter.h" |
7 #include "chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.h" | 7 #include "device/bluetooth/test/mock_bluetooth_device.h" |
8 | 8 |
9 namespace chromeos { | 9 namespace device { |
10 | 10 |
11 MockBluetoothDevice::MockBluetoothDevice(MockBluetoothAdapter* adapter, | 11 MockBluetoothDevice::MockBluetoothDevice(MockBluetoothAdapter* adapter, |
12 const std::string& name, | 12 const std::string& name, |
13 const std::string& address, | 13 const std::string& address, |
14 bool paired, | 14 bool paired, |
15 bool bonded, | 15 bool bonded, |
16 bool connected) | 16 bool connected) |
17 : name_(UTF8ToUTF16(name)), | 17 : name_(UTF8ToUTF16(name)), |
18 address_(address) { | 18 address_(address) { |
19 ON_CALL(*this, GetName()) | 19 ON_CALL(*this, GetName()) |
(...skipping 11 matching lines...) Expand all Loading... |
31 ON_CALL(*this, ExpectingPasskey()) | 31 ON_CALL(*this, ExpectingPasskey()) |
32 .WillByDefault(testing::Return(false)); | 32 .WillByDefault(testing::Return(false)); |
33 ON_CALL(*this, ExpectingConfirmation()) | 33 ON_CALL(*this, ExpectingConfirmation()) |
34 .WillByDefault(testing::Return(false)); | 34 .WillByDefault(testing::Return(false)); |
35 ON_CALL(*this, GetServices()) | 35 ON_CALL(*this, GetServices()) |
36 .WillByDefault(testing::ReturnRef(service_list_)); | 36 .WillByDefault(testing::ReturnRef(service_list_)); |
37 } | 37 } |
38 | 38 |
39 MockBluetoothDevice::~MockBluetoothDevice() {} | 39 MockBluetoothDevice::~MockBluetoothDevice() {} |
40 | 40 |
41 } // namespace chromeos | 41 } // namespace device |
OLD | NEW |