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

Side by Side Diff: device/bluetooth/bluetooth_low_energy_win.h

Issue 1676073002: Implement BluetoothLowEnergyWrapperFake for Bluetooth test fixture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase && address comments Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BLUETOOTH_LOW_ENERGY_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 DEVPROPTYPE property_type_; 70 DEVPROPTYPE property_type_;
71 scoped_ptr<uint8_t[]> value_; 71 scoped_ptr<uint8_t[]> value_;
72 size_t value_size_; 72 size_t value_size_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(DevicePropertyValue); 74 DISALLOW_COPY_AND_ASSIGN(DevicePropertyValue);
75 }; 75 };
76 76
77 // Returns true only on Windows platforms supporting Bluetooth Low Energy. 77 // Returns true only on Windows platforms supporting Bluetooth Low Energy.
78 bool DEVICE_BLUETOOTH_EXPORT IsBluetoothLowEnergySupported(); 78 bool DEVICE_BLUETOOTH_EXPORT IsBluetoothLowEnergySupported();
79 79
80 struct BluetoothLowEnergyServiceInfo { 80 struct DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyServiceInfo {
81 BluetoothLowEnergyServiceInfo(); 81 BluetoothLowEnergyServiceInfo();
82 ~BluetoothLowEnergyServiceInfo(); 82 ~BluetoothLowEnergyServiceInfo();
83 83
84 BTH_LE_UUID uuid; 84 BTH_LE_UUID uuid;
85 // Attribute handle uniquely identifies this service on the device. 85 // Attribute handle uniquely identifies this service on the device.
86 USHORT attribute_handle = 0; 86 USHORT attribute_handle = 0;
87 }; 87 };
88 88
89 struct BluetoothLowEnergyDeviceInfo { 89 struct DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceInfo {
90 BluetoothLowEnergyDeviceInfo(); 90 BluetoothLowEnergyDeviceInfo();
91 ~BluetoothLowEnergyDeviceInfo(); 91 ~BluetoothLowEnergyDeviceInfo();
92 92
93 base::FilePath path; 93 base::FilePath path;
94 std::string id; 94 std::string id;
95 std::string friendly_name; 95 std::string friendly_name;
96 BLUETOOTH_ADDRESS address; 96 BLUETOOTH_ADDRESS address;
97 bool visible; 97 bool visible;
98 bool authenticated; 98 bool authenticated;
99 bool connected; 99 bool connected;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 protected: 147 protected:
148 BluetoothLowEnergyWrapper(); 148 BluetoothLowEnergyWrapper();
149 virtual ~BluetoothLowEnergyWrapper(); 149 virtual ~BluetoothLowEnergyWrapper();
150 }; 150 };
151 151
152 } // namespace win 152 } // namespace win
153 } // namespace device 153 } // namespace device
154 154
155 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_ 155 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_unittest.cc ('k') | device/bluetooth/bluetooth_low_energy_win_fake.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698