OLD | NEW |
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 #include "device/bluetooth/test/mock_bluetooth_cbperipheral_mac.h" | 5 #include "device/bluetooth/test/mock_bluetooth_cbperipheral_mac.h" |
6 | 6 |
7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "device/bluetooth/test/bluetooth_test_mac.h" | 9 #include "device/bluetooth/test/bluetooth_test_mac.h" |
10 #include "device/bluetooth/test/mock_bluetooth_cbservice_mac.h" | 10 #include "device/bluetooth/test/mock_bluetooth_cbservice_mac.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 } | 163 } |
164 | 164 |
165 - (NSArray*)services { | 165 - (NSArray*)services { |
166 return _services.get(); | 166 return _services.get(); |
167 } | 167 } |
168 | 168 |
169 - (CBPeripheral*)peripheral { | 169 - (CBPeripheral*)peripheral { |
170 return ObjCCast<CBPeripheral>(self); | 170 return ObjCCast<CBPeripheral>(self); |
171 } | 171 } |
172 | 172 |
| 173 - (void)setNotifyValue:(BOOL)notification |
| 174 forCharacteristic:(CBCharacteristic*)characteristic { |
| 175 _bluetoothTestMac->OnFakeBluetoothGattSetCharacteristicNotification(); |
| 176 } |
| 177 |
173 @end | 178 @end |
OLD | NEW |