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

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

Issue 273953002: Hook up RSSI and host transmit power Bluetooth device properties for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Start connection monitor when connected through chrome.bluetooth API 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const ConnectToServiceCallback& callback, 72 const ConnectToServiceCallback& callback,
73 const ConnectToServiceErrorCallback& error_callback)); 73 const ConnectToServiceErrorCallback& error_callback));
74 74
75 MOCK_METHOD3(SetOutOfBandPairingData, 75 MOCK_METHOD3(SetOutOfBandPairingData,
76 void(const BluetoothOutOfBandPairingData& data, 76 void(const BluetoothOutOfBandPairingData& data,
77 const base::Closure& callback, 77 const base::Closure& callback,
78 const BluetoothDevice::ErrorCallback& error_callback)); 78 const BluetoothDevice::ErrorCallback& error_callback));
79 MOCK_METHOD2(ClearOutOfBandPairingData, 79 MOCK_METHOD2(ClearOutOfBandPairingData,
80 void(const base::Closure& callback, 80 void(const base::Closure& callback,
81 const BluetoothDevice::ErrorCallback& error_callback)); 81 const BluetoothDevice::ErrorCallback& error_callback));
82 MOCK_METHOD2(StartConnectionMonitor,
83 void(const base::Closure& callback,
84 const BluetoothDevice::ErrorCallback& error_callback));
85 MOCK_METHOD2(StopConnectionMonitor,
86 void(const base::Closure& callback,
87 const BluetoothDevice::ErrorCallback& error_callback));
82 88
83 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>()); 89 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>());
84 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&)); 90 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&));
85 91
86 private: 92 private:
87 uint32 bluetooth_class_; 93 uint32 bluetooth_class_;
88 std::string name_; 94 std::string name_;
89 std::string address_; 95 std::string address_;
90 BluetoothDevice::UUIDList uuids_; 96 BluetoothDevice::UUIDList uuids_;
91 }; 97 };
92 98
93 } // namespace device 99 } // namespace device
94 100
95 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 101 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
OLDNEW
« device/bluetooth/bluetooth_device.h ('K') | « device/bluetooth/bluetooth_device_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698