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

Side by Side Diff: chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h

Issue 788193004: chromeos/dbus: Update Bluetooth GATT API clients to upstream definition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase & tbr Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // Schedules a heart rate measurement value change, if the heart rate 122 // Schedules a heart rate measurement value change, if the heart rate
123 // characteristics are visible. 123 // characteristics are visible.
124 void ScheduleHeartRateMeasurementValueChange(); 124 void ScheduleHeartRateMeasurementValueChange();
125 125
126 // Returns a random Heart Rate Measurement value. All the fields of the value 126 // Returns a random Heart Rate Measurement value. All the fields of the value
127 // are populated according to the the fake behavior. The measurement value 127 // are populated according to the the fake behavior. The measurement value
128 // is a random value within a reasonable range. 128 // is a random value within a reasonable range.
129 std::vector<uint8> GetHeartRateMeasurementValue(); 129 std::vector<uint8> GetHeartRateMeasurementValue();
130 130
131 // Callback that executes a delayed ReadValue action by updating the
132 // appropriate "Value" property and invoking the ValueCallback.
133 void DelayedReadValueCallback(const dbus::ObjectPath& object_path,
134 const ValueCallback& callback,
135 const std::vector<uint8_t>& value);
136
131 // If true, characteristics of the Heart Rate Service are visible. Use 137 // If true, characteristics of the Heart Rate Service are visible. Use
132 // IsHeartRateVisible() to check the value. 138 // IsHeartRateVisible() to check the value.
133 bool heart_rate_visible_; 139 bool heart_rate_visible_;
134 140
135 // If true, the client is authorized to read and write. 141 // If true, the client is authorized to read and write.
136 bool authorized_; 142 bool authorized_;
137 143
138 // If true, the client is authenticated. 144 // If true, the client is authenticated.
139 bool authenticated_; 145 bool authenticated_;
140 146
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // invalidate its weak pointers before any other members are destroyed. 186 // invalidate its weak pointers before any other members are destroyed.
181 base::WeakPtrFactory<FakeBluetoothGattCharacteristicClient> 187 base::WeakPtrFactory<FakeBluetoothGattCharacteristicClient>
182 weak_ptr_factory_; 188 weak_ptr_factory_;
183 189
184 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicClient); 190 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicClient);
185 }; 191 };
186 192
187 } // namespace chromeos 193 } // namespace chromeos
188 194
189 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 195 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_gatt_descriptor_client.cc ('k') | chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698