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

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: fix clang warnings, test flakiness, and bluetooth.connect should succeed even if monitor fails 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
« no previous file with comments | « device/bluetooth/bluetooth_device_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
82 85
83 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>()); 86 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>());
84 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&)); 87 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&));
85 88
86 private: 89 private:
87 uint32 bluetooth_class_; 90 uint32 bluetooth_class_;
88 std::string name_; 91 std::string name_;
89 std::string address_; 92 std::string address_;
90 BluetoothDevice::UUIDList uuids_; 93 BluetoothDevice::UUIDList uuids_;
91 }; 94 };
92 95
93 } // namespace device 96 } // namespace device
94 97
95 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 98 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698