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

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

Issue 2098653002: device/bluetooth/bluez: add discoverable timeout adapter property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 4 years, 6 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_ADAPTER_CLIENT_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_
6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void MakeSetDiscoveryFilterFail(); 79 void MakeSetDiscoveryFilterFail();
80 80
81 // Mark the adapter and second adapter as visible or invisible. 81 // Mark the adapter and second adapter as visible or invisible.
82 void SetVisible(bool visible); 82 void SetVisible(bool visible);
83 void SetSecondVisible(bool visible); 83 void SetSecondVisible(bool visible);
84 84
85 // Set adapter UUIDs 85 // Set adapter UUIDs
86 void SetUUIDs(const std::vector<std::string>& uuids); 86 void SetUUIDs(const std::vector<std::string>& uuids);
87 void SetSecondUUIDs(const std::vector<std::string>& uuids); 87 void SetSecondUUIDs(const std::vector<std::string>& uuids);
88 88
89 // Set discoverable timeout
90 void SetDiscoverableTimeout(uint32_t timeout);
91
89 // Object path, name and addresses of the adapters we emulate. 92 // Object path, name and addresses of the adapters we emulate.
90 static const char kAdapterPath[]; 93 static const char kAdapterPath[];
91 static const char kAdapterName[]; 94 static const char kAdapterName[];
92 static const char kAdapterAddress[]; 95 static const char kAdapterAddress[];
93 96
94 static const char kSecondAdapterPath[]; 97 static const char kSecondAdapterPath[];
95 static const char kSecondAdapterName[]; 98 static const char kSecondAdapterName[];
96 static const char kSecondAdapterAddress[]; 99 static const char kSecondAdapterAddress[];
97 100
98 private: 101 private:
(...skipping 30 matching lines...) Expand all
129 // Last used handle value issued for a service record. 132 // Last used handle value issued for a service record.
130 uint32_t last_handle_; 133 uint32_t last_handle_;
131 134
132 // Service records manually registered with this adapter by handle. 135 // Service records manually registered with this adapter by handle.
133 std::map<uint32_t, BluetoothServiceRecordBlueZ> records_; 136 std::map<uint32_t, BluetoothServiceRecordBlueZ> records_;
134 }; 137 };
135 138
136 } // namespace bluez 139 } // namespace bluez
137 140
138 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ 141 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_bluez_unittest.cc ('k') | device/bluetooth/dbus/fake_bluetooth_adapter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698