Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: device/bluetooth/test/mock_bluetooth_device.h

Issue 246603008: Expose device RSSI and Tx power via the chrome.bluetooth API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 20 matching lines...) Expand all
31 MOCK_METHOD1(RemoveObserver, void(BluetoothDevice::Observer*)); 31 MOCK_METHOD1(RemoveObserver, void(BluetoothDevice::Observer*));
32 MOCK_CONST_METHOD0(GetBluetoothClass, uint32()); 32 MOCK_CONST_METHOD0(GetBluetoothClass, uint32());
33 MOCK_CONST_METHOD0(GetDeviceName, std::string()); 33 MOCK_CONST_METHOD0(GetDeviceName, std::string());
34 MOCK_CONST_METHOD0(GetAddress, std::string()); 34 MOCK_CONST_METHOD0(GetAddress, std::string());
35 MOCK_CONST_METHOD0(GetVendorIDSource, BluetoothDevice::VendorIDSource()); 35 MOCK_CONST_METHOD0(GetVendorIDSource, BluetoothDevice::VendorIDSource());
36 MOCK_CONST_METHOD0(GetVendorID, uint16()); 36 MOCK_CONST_METHOD0(GetVendorID, uint16());
37 MOCK_CONST_METHOD0(GetProductID, uint16()); 37 MOCK_CONST_METHOD0(GetProductID, uint16());
38 MOCK_CONST_METHOD0(GetDeviceID, uint16()); 38 MOCK_CONST_METHOD0(GetDeviceID, uint16());
39 MOCK_CONST_METHOD0(GetName, base::string16()); 39 MOCK_CONST_METHOD0(GetName, base::string16());
40 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType()); 40 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType());
41 MOCK_CONST_METHOD0(GetRSSI, int());
41 MOCK_CONST_METHOD0(IsPaired, bool()); 42 MOCK_CONST_METHOD0(IsPaired, bool());
42 MOCK_CONST_METHOD0(IsConnected, bool()); 43 MOCK_CONST_METHOD0(IsConnected, bool());
43 MOCK_CONST_METHOD0(IsConnectable, bool()); 44 MOCK_CONST_METHOD0(IsConnectable, bool());
44 MOCK_CONST_METHOD0(IsConnecting, bool()); 45 MOCK_CONST_METHOD0(IsConnecting, bool());
45 MOCK_CONST_METHOD0(GetUUIDs, UUIDList()); 46 MOCK_CONST_METHOD0(GetUUIDs, UUIDList());
46 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); 47 MOCK_CONST_METHOD0(ExpectingPinCode, bool());
47 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); 48 MOCK_CONST_METHOD0(ExpectingPasskey, bool());
48 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); 49 MOCK_CONST_METHOD0(ExpectingConfirmation, bool());
49 MOCK_METHOD3(Connect, 50 MOCK_METHOD3(Connect,
50 void(BluetoothDevice::PairingDelegate* pairing_delegate, 51 void(BluetoothDevice::PairingDelegate* pairing_delegate,
(...skipping 25 matching lines...) Expand all
76 private: 77 private:
77 uint32 bluetooth_class_; 78 uint32 bluetooth_class_;
78 std::string name_; 79 std::string name_;
79 std::string address_; 80 std::string address_;
80 BluetoothDevice::UUIDList uuids_; 81 BluetoothDevice::UUIDList uuids_;
81 }; 82 };
82 83
83 } // namespace device 84 } // namespace device
84 85
85 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 86 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698