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

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

Issue 13872017: Bluetooth: gather usage metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase since Cellular.* appeared under us Created 7 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/string16.h" 10 #include "base/string16.h"
(...skipping 11 matching lines...) Expand all
22 uint32 bluetooth_class, 22 uint32 bluetooth_class,
23 const std::string& name, 23 const std::string& name,
24 const std::string& address, 24 const std::string& address,
25 bool paired, 25 bool paired,
26 bool connected); 26 bool connected);
27 virtual ~MockBluetoothDevice(); 27 virtual ~MockBluetoothDevice();
28 28
29 MOCK_CONST_METHOD0(GetBluetoothClass, uint32()); 29 MOCK_CONST_METHOD0(GetBluetoothClass, uint32());
30 MOCK_CONST_METHOD0(GetDeviceName, std::string()); 30 MOCK_CONST_METHOD0(GetDeviceName, std::string());
31 MOCK_CONST_METHOD0(GetAddress, std::string()); 31 MOCK_CONST_METHOD0(GetAddress, std::string());
32 MOCK_CONST_METHOD0(GetVendorID, uint16());
33 MOCK_CONST_METHOD0(GetProductID, uint16());
34 MOCK_CONST_METHOD0(GetDeviceID, uint16());
32 MOCK_CONST_METHOD0(GetName, string16()); 35 MOCK_CONST_METHOD0(GetName, string16());
33 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType()); 36 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType());
34 MOCK_CONST_METHOD0(IsPaired, bool()); 37 MOCK_CONST_METHOD0(IsPaired, bool());
35 MOCK_CONST_METHOD0(IsConnected, bool()); 38 MOCK_CONST_METHOD0(IsConnected, bool());
36 MOCK_CONST_METHOD0(IsConnectable, bool()); 39 MOCK_CONST_METHOD0(IsConnectable, bool());
37 MOCK_CONST_METHOD0(IsConnecting, bool()); 40 MOCK_CONST_METHOD0(IsConnecting, bool());
38 MOCK_CONST_METHOD0(GetServices, ServiceList()); 41 MOCK_CONST_METHOD0(GetServices, ServiceList());
39 MOCK_METHOD2(GetServiceRecords, 42 MOCK_METHOD2(GetServiceRecords,
40 void(const BluetoothDevice::ServiceRecordsCallback&, 43 void(const BluetoothDevice::ServiceRecordsCallback&,
41 const BluetoothDevice::ErrorCallback&)); 44 const BluetoothDevice::ErrorCallback&));
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 private: 82 private:
80 uint32 bluetooth_class_; 83 uint32 bluetooth_class_;
81 std::string name_; 84 std::string name_;
82 std::string address_; 85 std::string address_;
83 BluetoothDevice::ServiceList service_list_; 86 BluetoothDevice::ServiceList service_list_;
84 }; 87 };
85 88
86 } // namespace device 89 } // namespace device
87 90
88 #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_experimental_chromeos_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698