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

Side by Side Diff: device/bluetooth/test/test_bluetooth_adapter_observer.h

Issue 2085293002: bluetooth: Call GattCharacteristicValueChanged after a read succeeds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Use a lambda to check that GattCharacteristicValueChanged has been called 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
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_
6 #define DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ 6 #define DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 return gatt_services_discovered_count_; 105 return gatt_services_discovered_count_;
106 } 106 }
107 int gatt_service_changed_count() { return gatt_service_changed_count_; } 107 int gatt_service_changed_count() { return gatt_service_changed_count_; }
108 int gatt_discovery_complete_count() { return gatt_discovery_complete_count_; } 108 int gatt_discovery_complete_count() { return gatt_discovery_complete_count_; }
109 int gatt_characteristic_added_count() { 109 int gatt_characteristic_added_count() {
110 return gatt_characteristic_added_count_; 110 return gatt_characteristic_added_count_;
111 } 111 }
112 int gatt_characteristic_removed_count() { 112 int gatt_characteristic_removed_count() {
113 return gatt_characteristic_removed_count_; 113 return gatt_characteristic_removed_count_;
114 } 114 }
115 int gatt_characteristic_value_changed_count() { 115 int gatt_characteristic_value_changed_count() const {
116 return gatt_characteristic_value_changed_count_; 116 return gatt_characteristic_value_changed_count_;
117 } 117 }
118 int gatt_descriptor_added_count() { return gatt_descriptor_added_count_; } 118 int gatt_descriptor_added_count() { return gatt_descriptor_added_count_; }
119 int gatt_descriptor_removed_count() { return gatt_descriptor_removed_count_; } 119 int gatt_descriptor_removed_count() { return gatt_descriptor_removed_count_; }
120 int gatt_descriptor_value_changed_count() { 120 int gatt_descriptor_value_changed_count() {
121 return gatt_descriptor_value_changed_count_; 121 return gatt_descriptor_value_changed_count_;
122 } 122 }
123 std::string last_gatt_service_id() { return last_gatt_service_id_; } 123 std::string last_gatt_service_id() { return last_gatt_service_id_; }
124 BluetoothUUID last_gatt_service_uuid() { return last_gatt_service_uuid_; } 124 BluetoothUUID last_gatt_service_uuid() { return last_gatt_service_uuid_; }
125 std::string last_gatt_characteristic_id() { 125 std::string last_gatt_characteristic_id() {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 std::string last_gatt_descriptor_id_; 187 std::string last_gatt_descriptor_id_;
188 BluetoothUUID last_gatt_descriptor_uuid_; 188 BluetoothUUID last_gatt_descriptor_uuid_;
189 std::vector<uint8_t> last_changed_descriptor_value_; 189 std::vector<uint8_t> last_changed_descriptor_value_;
190 190
191 DISALLOW_COPY_AND_ASSIGN(TestBluetoothAdapterObserver); 191 DISALLOW_COPY_AND_ASSIGN(TestBluetoothAdapterObserver);
192 }; 192 };
193 193
194 } // namespace device 194 } // namespace device
195 195
196 #endif // DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_ 196 #endif // DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_ADAPTER_OBSERVER_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698