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

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

Issue 2102093003: Implement BluetoothDeviceBlueZ::GetServiceRecords. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 <cstdint>
9
10 #include <map> 9 #include <map>
11 #include <memory> 10 #include <memory>
12 #include <vector> 11 #include <vector>
13 12
14 #include "base/bind.h" 13 #include "base/bind.h"
15 #include "base/callback.h" 14 #include "base/callback.h"
16 #include "base/observer_list.h" 15 #include "base/observer_list.h"
17 #include "dbus/object_path.h" 16 #include "dbus/object_path.h"
18 #include "dbus/property.h" 17 #include "dbus/property.h"
19 #include "device/bluetooth/bluetooth_common.h" 18 #include "device/bluetooth/bluetooth_common.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const ErrorCallback& error_callback) override; 94 const ErrorCallback& error_callback) override;
96 void Pair(const dbus::ObjectPath& object_path, 95 void Pair(const dbus::ObjectPath& object_path,
97 const base::Closure& callback, 96 const base::Closure& callback,
98 const ErrorCallback& error_callback) override; 97 const ErrorCallback& error_callback) override;
99 void CancelPairing(const dbus::ObjectPath& object_path, 98 void CancelPairing(const dbus::ObjectPath& object_path,
100 const base::Closure& callback, 99 const base::Closure& callback,
101 const ErrorCallback& error_callback) override; 100 const ErrorCallback& error_callback) override;
102 void GetConnInfo(const dbus::ObjectPath& object_path, 101 void GetConnInfo(const dbus::ObjectPath& object_path,
103 const ConnInfoCallback& callback, 102 const ConnInfoCallback& callback,
104 const ErrorCallback& error_callback) override; 103 const ErrorCallback& error_callback) override;
104 void GetServiceRecords(const dbus::ObjectPath& object_path,
105 const ServiceRecordsCallback& callback,
106 const ErrorCallback& error_callback) override;
105 107
106 void SetSimulationIntervalMs(int interval_ms); 108 void SetSimulationIntervalMs(int interval_ms);
107 109
108 // Simulates discovery of devices for the given adapter. 110 // Simulates discovery of devices for the given adapter.
109 void BeginDiscoverySimulation(const dbus::ObjectPath& adapter_path); 111 void BeginDiscoverySimulation(const dbus::ObjectPath& adapter_path);
110 void EndDiscoverySimulation(const dbus::ObjectPath& adapter_path); 112 void EndDiscoverySimulation(const dbus::ObjectPath& adapter_path);
111 113
112 // Simulates incoming pairing of devices for the given adapter. 114 // Simulates incoming pairing of devices for the given adapter.
113 void BeginIncomingPairingSimulation(const dbus::ObjectPath& adapter_path); 115 void BeginIncomingPairingSimulation(const dbus::ObjectPath& adapter_path);
114 void EndIncomingPairingSimulation(const dbus::ObjectPath& adapter_path); 116 void EndIncomingPairingSimulation(const dbus::ObjectPath& adapter_path);
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 int16_t max_transmit_power_; 339 int16_t max_transmit_power_;
338 340
339 // Controls the fake behavior to allow more extensive UI testing without 341 // Controls the fake behavior to allow more extensive UI testing without
340 // having to cycle the discovery simulation. 342 // having to cycle the discovery simulation.
341 bool delay_start_discovery_; 343 bool delay_start_discovery_;
342 }; 344 };
343 345
344 } // namespace bluez 346 } // namespace bluez
345 347
346 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ 348 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/bluetooth_device_client.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