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

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

Issue 256413003: chrome.bluetoothLowEnergy: Implement getService and getServices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const ConnectToProfileErrorCallback& error_callback)); 66 const ConnectToProfileErrorCallback& error_callback));
67 67
68 MOCK_METHOD3(SetOutOfBandPairingData, 68 MOCK_METHOD3(SetOutOfBandPairingData,
69 void(const BluetoothOutOfBandPairingData& data, 69 void(const BluetoothOutOfBandPairingData& data,
70 const base::Closure& callback, 70 const base::Closure& callback,
71 const BluetoothDevice::ErrorCallback& error_callback)); 71 const BluetoothDevice::ErrorCallback& error_callback));
72 MOCK_METHOD2(ClearOutOfBandPairingData, 72 MOCK_METHOD2(ClearOutOfBandPairingData,
73 void(const base::Closure& callback, 73 void(const base::Closure& callback,
74 const BluetoothDevice::ErrorCallback& error_callback)); 74 const BluetoothDevice::ErrorCallback& error_callback));
75 75
76 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>());
77 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&));
78
76 private: 79 private:
77 uint32 bluetooth_class_; 80 uint32 bluetooth_class_;
78 std::string name_; 81 std::string name_;
79 std::string address_; 82 std::string address_;
80 BluetoothDevice::UUIDList uuids_; 83 BluetoothDevice::UUIDList uuids_;
81 }; 84 };
82 85
83 } // namespace device 86 } // namespace device
84 87
85 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 88 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_service_chromeos.cc ('k') | device/bluetooth/test/mock_bluetooth_gatt_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698