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

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: Address code review feedback. Created 6 years, 9 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/sequenced_task_runner.h"
keybuk 2014/03/20 01:21:56 remove
rpaquay 2014/03/20 18:21:11 Done.
10 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
11 #include "device/bluetooth/bluetooth_device.h" 12 #include "device/bluetooth/bluetooth_device.h"
12 #include "device/bluetooth/bluetooth_out_of_band_pairing_data.h" 13 #include "device/bluetooth/bluetooth_out_of_band_pairing_data.h"
13 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
14 15
15 namespace device { 16 namespace device {
16 17
17 class MockBluetoothAdapter; 18 class MockBluetoothAdapter;
18 19
19 class MockBluetoothDevice : public BluetoothDevice { 20 class MockBluetoothDevice : public BluetoothDevice {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 MOCK_METHOD0(RejectPairing, void()); 62 MOCK_METHOD0(RejectPairing, void());
62 MOCK_METHOD0(CancelPairing, void()); 63 MOCK_METHOD0(CancelPairing, void());
63 MOCK_METHOD2(Disconnect, 64 MOCK_METHOD2(Disconnect,
64 void(const base::Closure& callback, 65 void(const base::Closure& callback,
65 const BluetoothDevice::ErrorCallback& error_callback)); 66 const BluetoothDevice::ErrorCallback& error_callback));
66 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&)); 67 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&));
67 MOCK_METHOD2(ConnectToService, 68 MOCK_METHOD2(ConnectToService,
68 void(const std::string&, 69 void(const std::string&,
69 const BluetoothDevice::SocketCallback&)); 70 const BluetoothDevice::SocketCallback&));
70 MOCK_METHOD3(ConnectToProfile, 71 MOCK_METHOD3(ConnectToProfile,
71 void(BluetoothProfile*, 72 void(BluetoothProfile* profile,
72 const base::Closure&, 73 const base::Closure& callback,
73 const BluetoothDevice::ErrorCallback&)); 74 const ErrorCallback& error_callback));
74 75
75 MOCK_METHOD3(SetOutOfBandPairingData, 76 MOCK_METHOD3(SetOutOfBandPairingData,
76 void(const BluetoothOutOfBandPairingData& data, 77 void(const BluetoothOutOfBandPairingData& data,
77 const base::Closure& callback, 78 const base::Closure& callback,
78 const BluetoothDevice::ErrorCallback& error_callback)); 79 const BluetoothDevice::ErrorCallback& error_callback));
79 MOCK_METHOD2(ClearOutOfBandPairingData, 80 MOCK_METHOD2(ClearOutOfBandPairingData,
80 void(const base::Closure& callback, 81 void(const base::Closure& callback,
81 const BluetoothDevice::ErrorCallback& error_callback)); 82 const BluetoothDevice::ErrorCallback& error_callback));
82 83
83 private: 84 private:
84 uint32 bluetooth_class_; 85 uint32 bluetooth_class_;
85 std::string name_; 86 std::string name_;
86 std::string address_; 87 std::string address_;
87 BluetoothDevice::ServiceList service_list_; 88 BluetoothDevice::ServiceList service_list_;
88 }; 89 };
89 90
90 } // namespace device 91 } // namespace device
91 92
92 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 93 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698