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