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

Side by Side Diff: device/bluetooth/test/bluetooth_test.cc

Issue 2039773005: Add support in Chrome to send notifications to a specific device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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/bluetooth_test.h" 5 #include "device/bluetooth/test/bluetooth_test.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 return nullptr; 68 return nullptr;
69 } 69 }
70 70
71 bool BluetoothTestBase::SimulateLocalGattCharacteristicNotificationsRequest( 71 bool BluetoothTestBase::SimulateLocalGattCharacteristicNotificationsRequest(
72 BluetoothLocalGattCharacteristic* characteristic, 72 BluetoothLocalGattCharacteristic* characteristic,
73 bool start) { 73 bool start) {
74 NOTIMPLEMENTED(); 74 NOTIMPLEMENTED();
75 return false; 75 return false;
76 } 76 }
77 77
78 std::vector<uint8_t> BluetoothTestBase::LastNotifactionValueForCharacteristic( 78 BluetoothTestBase::NotificationType
79 BluetoothTestBase::LastNotifactionValueForCharacteristic(
79 BluetoothLocalGattCharacteristic* characteristic) { 80 BluetoothLocalGattCharacteristic* characteristic) {
80 NOTIMPLEMENTED(); 81 NOTIMPLEMENTED();
81 return std::vector<uint8_t>(); 82 return NotificationType();
82 } 83 }
83 84
84 std::vector<BluetoothLocalGattService*> 85 std::vector<BluetoothLocalGattService*>
85 BluetoothTestBase::RegisteredGattServices() { 86 BluetoothTestBase::RegisteredGattServices() {
86 NOTIMPLEMENTED(); 87 NOTIMPLEMENTED();
87 return std::vector<BluetoothLocalGattService*>(); 88 return std::vector<BluetoothLocalGattService*>();
88 } 89 }
89 90
90 void BluetoothTestBase::DeleteDevice(BluetoothDevice* device) { 91 void BluetoothTestBase::DeleteDevice(BluetoothDevice* device) {
91 adapter_->DeleteDeviceForTesting(device->GetAddress()); 92 adapter_->DeleteDeviceForTesting(device->GetAddress());
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 gatt_disconnection_attempts_ = 0; 316 gatt_disconnection_attempts_ = 0;
316 gatt_discovery_attempts_ = 0; 317 gatt_discovery_attempts_ = 0;
317 gatt_notify_characteristic_attempts_ = 0; 318 gatt_notify_characteristic_attempts_ = 0;
318 gatt_read_characteristic_attempts_ = 0; 319 gatt_read_characteristic_attempts_ = 0;
319 gatt_write_characteristic_attempts_ = 0; 320 gatt_write_characteristic_attempts_ = 0;
320 gatt_read_descriptor_attempts_ = 0; 321 gatt_read_descriptor_attempts_ = 0;
321 gatt_write_descriptor_attempts_ = 0; 322 gatt_write_descriptor_attempts_ = 0;
322 } 323 }
323 324
324 } // namespace device 325 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698