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

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

Issue 224763003: Revert 261566 "device/bluetooth: Rename device::bluetooth_utils:..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | 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"
11 #include "device/bluetooth/bluetooth_device.h" 11 #include "device/bluetooth/bluetooth_device.h"
12 #include "device/bluetooth/bluetooth_out_of_band_pairing_data.h" 12 #include "device/bluetooth/bluetooth_out_of_band_pairing_data.h"
13 #include "device/bluetooth/bluetooth_uuid.h"
14 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
15 14
16 namespace device { 15 namespace device {
17 16
18 class MockBluetoothAdapter; 17 class MockBluetoothAdapter;
19 18
20 class MockBluetoothDevice : public BluetoothDevice { 19 class MockBluetoothDevice : public BluetoothDevice {
21 public: 20 public:
22 MockBluetoothDevice(MockBluetoothAdapter* adapter, 21 MockBluetoothDevice(MockBluetoothAdapter* adapter,
23 uint32 bluetooth_class, 22 uint32 bluetooth_class,
(...skipping 28 matching lines...) Expand all
52 MOCK_METHOD1(SetPinCode, void(const std::string&)); 51 MOCK_METHOD1(SetPinCode, void(const std::string&));
53 MOCK_METHOD1(SetPasskey, void(uint32)); 52 MOCK_METHOD1(SetPasskey, void(uint32));
54 MOCK_METHOD0(ConfirmPairing, void()); 53 MOCK_METHOD0(ConfirmPairing, void());
55 MOCK_METHOD0(RejectPairing, void()); 54 MOCK_METHOD0(RejectPairing, void());
56 MOCK_METHOD0(CancelPairing, void()); 55 MOCK_METHOD0(CancelPairing, void());
57 MOCK_METHOD2(Disconnect, 56 MOCK_METHOD2(Disconnect,
58 void(const base::Closure& callback, 57 void(const base::Closure& callback,
59 const BluetoothDevice::ErrorCallback& error_callback)); 58 const BluetoothDevice::ErrorCallback& error_callback));
60 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&)); 59 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&));
61 MOCK_METHOD2(ConnectToService, 60 MOCK_METHOD2(ConnectToService,
62 void(const BluetoothUUID&, 61 void(const std::string&,
63 const BluetoothDevice::SocketCallback&)); 62 const BluetoothDevice::SocketCallback&));
64 MOCK_METHOD3(ConnectToProfile, 63 MOCK_METHOD3(ConnectToProfile,
65 void(BluetoothProfile*, 64 void(BluetoothProfile*,
66 const base::Closure&, 65 const base::Closure&,
67 const BluetoothDevice::ErrorCallback&)); 66 const BluetoothDevice::ErrorCallback&));
68 67
69 MOCK_METHOD3(SetOutOfBandPairingData, 68 MOCK_METHOD3(SetOutOfBandPairingData,
70 void(const BluetoothOutOfBandPairingData& data, 69 void(const BluetoothOutOfBandPairingData& data,
71 const base::Closure& callback, 70 const base::Closure& callback,
72 const BluetoothDevice::ErrorCallback& error_callback)); 71 const BluetoothDevice::ErrorCallback& error_callback));
73 MOCK_METHOD2(ClearOutOfBandPairingData, 72 MOCK_METHOD2(ClearOutOfBandPairingData,
74 void(const base::Closure& callback, 73 void(const base::Closure& callback,
75 const BluetoothDevice::ErrorCallback& error_callback)); 74 const BluetoothDevice::ErrorCallback& error_callback));
76 75
77 private: 76 private:
78 uint32 bluetooth_class_; 77 uint32 bluetooth_class_;
79 std::string name_; 78 std::string name_;
80 std::string address_; 79 std::string address_;
81 BluetoothDevice::UUIDList uuids_; 80 BluetoothDevice::UUIDList uuids_;
82 }; 81 };
83 82
84 } // namespace device 83 } // namespace device
85 84
86 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ 85 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « trunk/src/device/bluetooth/bluetooth_uuid_unittest.cc ('k') | trunk/src/device/device_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698