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

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

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
« no previous file with comments | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/bluetooth_test_bluez.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 BluetoothLocalGattService* service, 50 BluetoothLocalGattService* service,
51 BluetoothLocalGattDescriptor* descriptor, 51 BluetoothLocalGattDescriptor* descriptor,
52 const BluetoothLocalGattService::Delegate::ValueCallback& value_callback, 52 const BluetoothLocalGattService::Delegate::ValueCallback& value_callback,
53 const base::Closure& error_callback) override; 53 const base::Closure& error_callback) override;
54 void SimulateLocalGattDescriptorValueWriteRequest( 54 void SimulateLocalGattDescriptorValueWriteRequest(
55 BluetoothLocalGattService* service, 55 BluetoothLocalGattService* service,
56 BluetoothLocalGattDescriptor* descriptor, 56 BluetoothLocalGattDescriptor* descriptor,
57 const std::vector<uint8_t>& value_to_write, 57 const std::vector<uint8_t>& value_to_write,
58 const base::Closure& success_callback, 58 const base::Closure& success_callback,
59 const base::Closure& error_callback) override; 59 const base::Closure& error_callback) override;
60 bool SimulateLocalGattCharacteristicNotificationsRequest(
61 BluetoothLocalGattService* service,
62 BluetoothLocalGattCharacteristic* characteristic,
63 bool start) override;
64 std::vector<uint8_t> LastNotifactionValueForCharacteristic(
65 BluetoothLocalGattCharacteristic* characteristic) override;
60 std::vector<BluetoothLocalGattService*> RegisteredGattServices() override; 66 std::vector<BluetoothLocalGattService*> RegisteredGattServices() override;
61 67
62 private: 68 private:
63 bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_; 69 bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_;
64 }; 70 };
65 71
66 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 72 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
67 using BluetoothTest = BluetoothTestBlueZ; 73 using BluetoothTest = BluetoothTestBlueZ;
68 74
69 } // namespace device 75 } // namespace device
70 76
71 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_ 77 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/bluetooth_test_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698