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

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

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeOS Full build. 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 MOCK_METHOD0(RejectPairing, void()); 55 MOCK_METHOD0(RejectPairing, void());
56 MOCK_METHOD0(CancelPairing, void()); 56 MOCK_METHOD0(CancelPairing, void());
57 MOCK_METHOD2(Disconnect, 57 MOCK_METHOD2(Disconnect,
58 void(const base::Closure& callback, 58 void(const base::Closure& callback,
59 const BluetoothDevice::ErrorCallback& error_callback)); 59 const BluetoothDevice::ErrorCallback& error_callback));
60 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&)); 60 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&));
61 MOCK_METHOD2(ConnectToService, 61 MOCK_METHOD2(ConnectToService,
62 void(const BluetoothUUID&, 62 void(const BluetoothUUID&,
63 const BluetoothDevice::SocketCallback&)); 63 const BluetoothDevice::SocketCallback&));
64 MOCK_METHOD3(ConnectToProfile, 64 MOCK_METHOD3(ConnectToProfile,
65 void(BluetoothProfile*, 65 void(BluetoothProfile* profile,
66 const base::Closure&, 66 const base::Closure& callback,
67 const BluetoothDevice::ErrorCallback&)); 67 const ConnectToProfileErrorCallback& error_callback));
68 68
69 MOCK_METHOD3(SetOutOfBandPairingData, 69 MOCK_METHOD3(SetOutOfBandPairingData,
70 void(const BluetoothOutOfBandPairingData& data, 70 void(const BluetoothOutOfBandPairingData& data,
71 const base::Closure& callback, 71 const base::Closure& callback,
72 const BluetoothDevice::ErrorCallback& error_callback)); 72 const BluetoothDevice::ErrorCallback& error_callback));
73 MOCK_METHOD2(ClearOutOfBandPairingData, 73 MOCK_METHOD2(ClearOutOfBandPairingData,
74 void(const base::Closure& callback, 74 void(const base::Closure& callback,
75 const BluetoothDevice::ErrorCallback& error_callback)); 75 const BluetoothDevice::ErrorCallback& error_callback));
76 76
77 private: 77 private:
78 uint32 bluetooth_class_; 78 uint32 bluetooth_class_;
79 std::string name_; 79 std::string name_;
80 std::string address_; 80 std::string address_;
81 BluetoothDevice::UUIDList uuids_; 81 BluetoothDevice::UUIDList uuids_;
82 }; 82 };
83 83
84 } // namespace device 84 } // namespace device
85 85
86 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 86 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_task_manager_win.cc ('k') | device/bluetooth/test/mock_bluetooth_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698