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

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

Issue 652403002: [Clean up] Expose ConnectToServiceInsecurely as a BluetoothDevice API on all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase: Restore deps rather than public_deps Created 6 years, 2 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
« 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 MOCK_METHOD0(RejectPairing, void()); 57 MOCK_METHOD0(RejectPairing, void());
58 MOCK_METHOD0(CancelPairing, void()); 58 MOCK_METHOD0(CancelPairing, void());
59 MOCK_METHOD2(Disconnect, 59 MOCK_METHOD2(Disconnect,
60 void(const base::Closure& callback, 60 void(const base::Closure& callback,
61 const BluetoothDevice::ErrorCallback& error_callback)); 61 const BluetoothDevice::ErrorCallback& error_callback));
62 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&)); 62 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&));
63 MOCK_METHOD3(ConnectToService, 63 MOCK_METHOD3(ConnectToService,
64 void(const BluetoothUUID& uuid, 64 void(const BluetoothUUID& uuid,
65 const ConnectToServiceCallback& callback, 65 const ConnectToServiceCallback& callback,
66 const ConnectToServiceErrorCallback& error_callback)); 66 const ConnectToServiceErrorCallback& error_callback));
67 MOCK_METHOD3(ConnectToServiceInsecurely,
68 void(const BluetoothUUID& uuid,
69 const ConnectToServiceCallback& callback,
70 const ConnectToServiceErrorCallback& error_callback));
67 MOCK_METHOD2(CreateGattConnection, 71 MOCK_METHOD2(CreateGattConnection,
68 void(const GattConnectionCallback& callback, 72 void(const GattConnectionCallback& callback,
69 const ConnectErrorCallback& error_callback)); 73 const ConnectErrorCallback& error_callback));
70 74
71 MOCK_METHOD2(StartConnectionMonitor, 75 MOCK_METHOD2(StartConnectionMonitor,
72 void(const base::Closure& callback, 76 void(const base::Closure& callback,
73 const BluetoothDevice::ErrorCallback& error_callback)); 77 const BluetoothDevice::ErrorCallback& error_callback));
74 78
75 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>()); 79 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>());
76 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&)); 80 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&));
77 81
78 private: 82 private:
79 uint32 bluetooth_class_; 83 uint32 bluetooth_class_;
80 std::string name_; 84 std::string name_;
81 std::string address_; 85 std::string address_;
82 BluetoothDevice::UUIDList uuids_; 86 BluetoothDevice::UUIDList uuids_;
83 }; 87 };
84 88
85 } // namespace device 89 } // namespace device
86 90
87 #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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698