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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_device_client.h

Issue 1979633004: Invoke GattDiscoveryCompleteForService by observing ServicesResolved property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_attr
Patch Set: Created 4 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
OLDNEW
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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 static const char kPairedUnconnectableDevicePath[]; 242 static const char kPairedUnconnectableDevicePath[];
243 static const char kPairedUnconnectableDeviceName[]; 243 static const char kPairedUnconnectableDeviceName[];
244 static const char kPairedUnconnectableDeviceAddress[]; 244 static const char kPairedUnconnectableDeviceAddress[];
245 static const uint32_t kPairedUnconnectableDeviceClass; 245 static const uint32_t kPairedUnconnectableDeviceClass;
246 246
247 static const char kConnectedTrustedNotPairedDevicePath[]; 247 static const char kConnectedTrustedNotPairedDevicePath[];
248 static const char kConnectedTrustedNotPairedDeviceAddress[]; 248 static const char kConnectedTrustedNotPairedDeviceAddress[];
249 static const char kConnectedTrustedNotPairedDeviceName[]; 249 static const char kConnectedTrustedNotPairedDeviceName[];
250 static const uint32_t kConnectedTrustedNotPairedDeviceClass; 250 static const uint32_t kConnectedTrustedNotPairedDeviceClass;
251 251
252 static const char kCachedLowEnergyPath[];
253 static const char kCachedLowEnergyAddress[];
254 static const char kCachedLowEnergyName[];
255 static const uint32_t kCachedLowEnergyClass;
256
252 private: 257 private:
253 // Property callback passed when we create Properties* structures. 258 // Property callback passed when we create Properties* structures.
254 void OnPropertyChanged(const dbus::ObjectPath& object_path, 259 void OnPropertyChanged(const dbus::ObjectPath& object_path,
255 const std::string& property_name); 260 const std::string& property_name);
256 261
257 void DiscoverySimulationTimer(); 262 void DiscoverySimulationTimer();
258 void IncomingPairingSimulationTimer(); 263 void IncomingPairingSimulationTimer();
259 264
260 void CompleteSimulatedPairing(const dbus::ObjectPath& object_path, 265 void CompleteSimulatedPairing(const dbus::ObjectPath& object_path,
261 const base::Closure& callback, 266 const base::Closure& callback,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 int16_t max_transmit_power_; 335 int16_t max_transmit_power_;
331 336
332 // Controls the fake behavior to allow more extensive UI testing without 337 // Controls the fake behavior to allow more extensive UI testing without
333 // having to cycle the discovery simulation. 338 // having to cycle the discovery simulation.
334 bool delay_start_discovery_; 339 bool delay_start_discovery_;
335 }; 340 };
336 341
337 } // namespace bluez 342 } // namespace bluez
338 343
339 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ 344 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_remote_gatt_service_bluez.cc ('k') | device/bluetooth/dbus/fake_bluetooth_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698