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

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

Issue 1973703002: Implement //device/bt changes for notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notifications_dbus
Patch Set: 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 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 bool BluetoothTestBase::DenyPermission() { 61 bool BluetoothTestBase::DenyPermission() {
62 return false; 62 return false;
63 } 63 }
64 64
65 BluetoothDevice* BluetoothTestBase::DiscoverLowEnergyDevice( 65 BluetoothDevice* BluetoothTestBase::DiscoverLowEnergyDevice(
66 int device_ordinal) { 66 int device_ordinal) {
67 NOTIMPLEMENTED(); 67 NOTIMPLEMENTED();
68 return nullptr; 68 return nullptr;
69 } 69 }
70 70
71 bool BluetoothTestBase::SimulateLocalGattCharacteristicNotificationsRequest(
72 BluetoothLocalGattService* service,
73 BluetoothLocalGattCharacteristic* characteristic,
74 bool start) {
75 NOTIMPLEMENTED();
76 return false;
77 }
78
79 bool BluetoothTestBase::SimulateLocalGattCharacteristicSendValueUpdate(
80 BluetoothLocalGattService* service,
81 BluetoothLocalGattCharacteristic* characteristic,
82 const std::vector<uint8_t>& new_value) {
83 NOTIMPLEMENTED();
84 return false;
85 }
86
71 std::vector<BluetoothLocalGattService*> 87 std::vector<BluetoothLocalGattService*>
72 BluetoothTestBase::RegisteredGattServices() { 88 BluetoothTestBase::RegisteredGattServices() {
73 NOTIMPLEMENTED(); 89 NOTIMPLEMENTED();
74 return std::vector<BluetoothLocalGattService*>(); 90 return std::vector<BluetoothLocalGattService*>();
75 } 91 }
76 92
77 void BluetoothTestBase::DeleteDevice(BluetoothDevice* device) { 93 void BluetoothTestBase::DeleteDevice(BluetoothDevice* device) {
78 adapter_->DeleteDeviceForTesting(device->GetAddress()); 94 adapter_->DeleteDeviceForTesting(device->GetAddress());
79 } 95 }
80 96
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 gatt_disconnection_attempts_ = 0; 318 gatt_disconnection_attempts_ = 0;
303 gatt_discovery_attempts_ = 0; 319 gatt_discovery_attempts_ = 0;
304 gatt_notify_characteristic_attempts_ = 0; 320 gatt_notify_characteristic_attempts_ = 0;
305 gatt_read_characteristic_attempts_ = 0; 321 gatt_read_characteristic_attempts_ = 0;
306 gatt_write_characteristic_attempts_ = 0; 322 gatt_write_characteristic_attempts_ = 0;
307 gatt_read_descriptor_attempts_ = 0; 323 gatt_read_descriptor_attempts_ = 0;
308 gatt_write_descriptor_attempts_ = 0; 324 gatt_write_descriptor_attempts_ = 0;
309 } 325 }
310 326
311 } // namespace device 327 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698