OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ |
6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ |
7 | 7 |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 static const char kPairedUnconnectableDevicePath[]; | 246 static const char kPairedUnconnectableDevicePath[]; |
247 static const char kPairedUnconnectableDeviceName[]; | 247 static const char kPairedUnconnectableDeviceName[]; |
248 static const char kPairedUnconnectableDeviceAddress[]; | 248 static const char kPairedUnconnectableDeviceAddress[]; |
249 static const uint32_t kPairedUnconnectableDeviceClass; | 249 static const uint32_t kPairedUnconnectableDeviceClass; |
250 | 250 |
251 static const char kConnectedTrustedNotPairedDevicePath[]; | 251 static const char kConnectedTrustedNotPairedDevicePath[]; |
252 static const char kConnectedTrustedNotPairedDeviceAddress[]; | 252 static const char kConnectedTrustedNotPairedDeviceAddress[]; |
253 static const char kConnectedTrustedNotPairedDeviceName[]; | 253 static const char kConnectedTrustedNotPairedDeviceName[]; |
254 static const uint32_t kConnectedTrustedNotPairedDeviceClass; | 254 static const uint32_t kConnectedTrustedNotPairedDeviceClass; |
255 | 255 |
256 static const char kCachedLowEnergyPath[]; | |
257 static const char kCachedLowEnergyAddress[]; | |
258 static const char kCachedLowEnergyName[]; | |
259 static const uint32_t kCachedLowEnergyClass; | |
260 | |
261 private: | 256 private: |
262 // Property callback passed when we create Properties* structures. | 257 // Property callback passed when we create Properties* structures. |
263 void OnPropertyChanged(const dbus::ObjectPath& object_path, | 258 void OnPropertyChanged(const dbus::ObjectPath& object_path, |
264 const std::string& property_name); | 259 const std::string& property_name); |
265 | 260 |
266 void DiscoverySimulationTimer(); | 261 void DiscoverySimulationTimer(); |
267 void IncomingPairingSimulationTimer(); | 262 void IncomingPairingSimulationTimer(); |
268 | 263 |
269 void CompleteSimulatedPairing(const dbus::ObjectPath& object_path, | 264 void CompleteSimulatedPairing(const dbus::ObjectPath& object_path, |
270 const base::Closure& callback, | 265 const base::Closure& callback, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 int16_t max_transmit_power_; | 334 int16_t max_transmit_power_; |
340 | 335 |
341 // Controls the fake behavior to allow more extensive UI testing without | 336 // Controls the fake behavior to allow more extensive UI testing without |
342 // having to cycle the discovery simulation. | 337 // having to cycle the discovery simulation. |
343 bool delay_start_discovery_; | 338 bool delay_start_discovery_; |
344 }; | 339 }; |
345 | 340 |
346 } // namespace bluez | 341 } // namespace bluez |
347 | 342 |
348 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ | 343 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ |
OLD | NEW |