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

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: Forward-declare more APIs introduced in Lion Created 6 years, 7 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());
42 MOCK_CONST_METHOD0(GetCurrentHostTransmitPower, int());
43 MOCK_CONST_METHOD0(GetMaximumHostTransmitPower, int());
41 MOCK_CONST_METHOD0(IsPaired, bool()); 44 MOCK_CONST_METHOD0(IsPaired, bool());
42 MOCK_CONST_METHOD0(IsConnected, bool()); 45 MOCK_CONST_METHOD0(IsConnected, bool());
43 MOCK_CONST_METHOD0(IsConnectable, bool()); 46 MOCK_CONST_METHOD0(IsConnectable, bool());
44 MOCK_CONST_METHOD0(IsConnecting, bool()); 47 MOCK_CONST_METHOD0(IsConnecting, bool());
45 MOCK_CONST_METHOD0(GetUUIDs, UUIDList()); 48 MOCK_CONST_METHOD0(GetUUIDs, UUIDList());
46 MOCK_CONST_METHOD0(ExpectingPinCode, bool()); 49 MOCK_CONST_METHOD0(ExpectingPinCode, bool());
47 MOCK_CONST_METHOD0(ExpectingPasskey, bool()); 50 MOCK_CONST_METHOD0(ExpectingPasskey, bool());
48 MOCK_CONST_METHOD0(ExpectingConfirmation, bool()); 51 MOCK_CONST_METHOD0(ExpectingConfirmation, bool());
49 MOCK_METHOD3(Connect, 52 MOCK_METHOD3(Connect,
50 void(BluetoothDevice::PairingDelegate* pairing_delegate, 53 void(BluetoothDevice::PairingDelegate* pairing_delegate,
(...skipping 28 matching lines...) Expand all
79 private: 82 private:
80 uint32 bluetooth_class_; 83 uint32 bluetooth_class_;
81 std::string name_; 84 std::string name_;
82 std::string address_; 85 std::string address_;
83 BluetoothDevice::UUIDList uuids_; 86 BluetoothDevice::UUIDList uuids_;
84 }; 87 };
85 88
86 } // namespace device 89 } // namespace device
87 90
88 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 91 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_win.cc ('k') | device/bluetooth/test/mock_bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698