| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 static const char kPairingActionConfirmation[]; | 174 static const char kPairingActionConfirmation[]; |
| 175 static const char kPairingActionDisplay[]; | 175 static const char kPairingActionDisplay[]; |
| 176 static const char kPairingActionFail[]; | 176 static const char kPairingActionFail[]; |
| 177 static const char kPairingActionRequest[]; | 177 static const char kPairingActionRequest[]; |
| 178 | 178 |
| 179 // Object paths, names, addresses and bluetooth classes of the devices | 179 // Object paths, names, addresses and bluetooth classes of the devices |
| 180 // we can emulate. | 180 // we can emulate. |
| 181 static const char kPairedDevicePath[]; | 181 static const char kPairedDevicePath[]; |
| 182 static const char kPairedDeviceName[]; | 182 static const char kPairedDeviceName[]; |
| 183 static const char kPairedDeviceAlias[]; |
| 183 static const char kPairedDeviceAddress[]; | 184 static const char kPairedDeviceAddress[]; |
| 184 static const uint32_t kPairedDeviceClass; | 185 static const uint32_t kPairedDeviceClass; |
| 185 | 186 |
| 186 static const char kLegacyAutopairPath[]; | 187 static const char kLegacyAutopairPath[]; |
| 187 static const char kLegacyAutopairName[]; | 188 static const char kLegacyAutopairName[]; |
| 188 static const char kLegacyAutopairAddress[]; | 189 static const char kLegacyAutopairAddress[]; |
| 189 static const uint32_t kLegacyAutopairClass; | 190 static const uint32_t kLegacyAutopairClass; |
| 190 | 191 |
| 191 static const char kDisplayPinCodePath[]; | 192 static const char kDisplayPinCodePath[]; |
| 192 static const char kDisplayPinCodeName[]; | 193 static const char kDisplayPinCodeName[]; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 static const char kJustWorksAddress[]; | 239 static const char kJustWorksAddress[]; |
| 239 static const uint32_t kJustWorksClass; | 240 static const uint32_t kJustWorksClass; |
| 240 | 241 |
| 241 static const char kLowEnergyPath[]; | 242 static const char kLowEnergyPath[]; |
| 242 static const char kLowEnergyName[]; | 243 static const char kLowEnergyName[]; |
| 243 static const char kLowEnergyAddress[]; | 244 static const char kLowEnergyAddress[]; |
| 244 static const uint32_t kLowEnergyClass; | 245 static const uint32_t kLowEnergyClass; |
| 245 | 246 |
| 246 static const char kPairedUnconnectableDevicePath[]; | 247 static const char kPairedUnconnectableDevicePath[]; |
| 247 static const char kPairedUnconnectableDeviceName[]; | 248 static const char kPairedUnconnectableDeviceName[]; |
| 249 static const char kPairedUnconnectableDeviceAlias[]; |
| 248 static const char kPairedUnconnectableDeviceAddress[]; | 250 static const char kPairedUnconnectableDeviceAddress[]; |
| 249 static const uint32_t kPairedUnconnectableDeviceClass; | 251 static const uint32_t kPairedUnconnectableDeviceClass; |
| 250 | 252 |
| 251 static const char kConnectedTrustedNotPairedDevicePath[]; | 253 static const char kConnectedTrustedNotPairedDevicePath[]; |
| 252 static const char kConnectedTrustedNotPairedDeviceAddress[]; | 254 static const char kConnectedTrustedNotPairedDeviceAddress[]; |
| 253 static const char kConnectedTrustedNotPairedDeviceName[]; | 255 static const char kConnectedTrustedNotPairedDeviceName[]; |
| 254 static const uint32_t kConnectedTrustedNotPairedDeviceClass; | 256 static const uint32_t kConnectedTrustedNotPairedDeviceClass; |
| 255 | 257 |
| 256 private: | 258 private: |
| 257 // Property callback passed when we create Properties* structures. | 259 // Property callback passed when we create Properties* structures. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 int16_t max_transmit_power_; | 336 int16_t max_transmit_power_; |
| 335 | 337 |
| 336 // Controls the fake behavior to allow more extensive UI testing without | 338 // Controls the fake behavior to allow more extensive UI testing without |
| 337 // having to cycle the discovery simulation. | 339 // having to cycle the discovery simulation. |
| 338 bool delay_start_discovery_; | 340 bool delay_start_discovery_; |
| 339 }; | 341 }; |
| 340 | 342 |
| 341 } // namespace bluez | 343 } // namespace bluez |
| 342 | 344 |
| 343 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ | 345 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ |
| OLD | NEW |