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

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

Issue 1979163002: Add DBus plumbing and tests for sending devices with ATT read/writes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devices
Patch Set: gyp fix 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_LOCAL_GATT_SERVICE_DELEGATE_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_LOCAL_GATT_SERVICE_DELEGATE_H_
6 #define DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_LOCAL_GATT_SERVICE_DELEGATE_H_ 6 #define DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_LOCAL_GATT_SERVICE_DELEGATE_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 expected_characteristic_ = characteristic; 67 expected_characteristic_ = characteristic;
68 } 68 }
69 69
70 void set_expected_descriptor(BluetoothLocalGattDescriptor* descriptor) { 70 void set_expected_descriptor(BluetoothLocalGattDescriptor* descriptor) {
71 expected_descriptor_ = descriptor; 71 expected_descriptor_ = descriptor;
72 } 72 }
73 73
74 bool should_fail_; 74 bool should_fail_;
75 uint64_t last_written_value_; 75 uint64_t last_written_value_;
76 uint64_t value_to_write_; 76 uint64_t value_to_write_;
77 std::string last_seen_device_;
77 78
78 private: 79 private:
79 BluetoothLocalGattService* expected_service_; 80 BluetoothLocalGattService* expected_service_;
80 BluetoothLocalGattCharacteristic* expected_characteristic_; 81 BluetoothLocalGattCharacteristic* expected_characteristic_;
81 BluetoothLocalGattDescriptor* expected_descriptor_; 82 BluetoothLocalGattDescriptor* expected_descriptor_;
82 83
83 std::map<std::string, bool> notifications_started_for_characteristic_; 84 std::map<std::string, bool> notifications_started_for_characteristic_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(TestBluetoothLocalGattServiceDelegate); 86 DISALLOW_COPY_AND_ASSIGN(TestBluetoothLocalGattServiceDelegate);
86 }; 87 };
87 88
88 } // namespace device 89 } // namespace device
89 90
90 #endif // DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_LOCAL_GATT_SERVICE_DELEGATE_H_ 91 #endif // DEVICE_BLUETOOTH_TEST_TEST_BLUETOOTH_LOCAL_GATT_SERVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test_bluez.cc ('k') | device/bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698