| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |