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

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

Issue 2634873002: Bluetooth: macOS: Implement BluetoothRemoteGattCharacteristicMac::UnsubscribeFromNotifications (Closed)
Patch Set: Correctly adding #if !defined(OS_MACOSX) Created 3 years, 10 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 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_
6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/test/test_simple_task_runner.h" 10 #include "base/test/test_simple_task_runner.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void SimulateGattCharacteristicWriteError( 66 void SimulateGattCharacteristicWriteError(
67 BluetoothRemoteGattCharacteristic* characteristic, 67 BluetoothRemoteGattCharacteristic* characteristic,
68 BluetoothRemoteGattService::GattErrorCode error_code) override; 68 BluetoothRemoteGattService::GattErrorCode error_code) override;
69 void SimulateGattDescriptor(BluetoothRemoteGattCharacteristic* characteristic, 69 void SimulateGattDescriptor(BluetoothRemoteGattCharacteristic* characteristic,
70 const std::string& uuid) override; 70 const std::string& uuid) override;
71 void SimulateGattNotifySessionStarted( 71 void SimulateGattNotifySessionStarted(
72 BluetoothRemoteGattCharacteristic* characteristic) override; 72 BluetoothRemoteGattCharacteristic* characteristic) override;
73 void SimulateGattNotifySessionStartError( 73 void SimulateGattNotifySessionStartError(
74 BluetoothRemoteGattCharacteristic* characteristic, 74 BluetoothRemoteGattCharacteristic* characteristic,
75 BluetoothRemoteGattService::GattErrorCode error_code) override; 75 BluetoothRemoteGattService::GattErrorCode error_code) override;
76 void SimulateGattNotifySessionStopped(
77 BluetoothRemoteGattCharacteristic* characteristic) override;
78 void SimulateGattNotifySessionStopError(
79 BluetoothRemoteGattCharacteristic* characteristic,
80 BluetoothRemoteGattService::GattErrorCode error_code) override;
76 void SimulateGattCharacteristicChanged( 81 void SimulateGattCharacteristicChanged(
77 BluetoothRemoteGattCharacteristic* characteristic, 82 BluetoothRemoteGattCharacteristic* characteristic,
78 const std::vector<uint8_t>& value) override; 83 const std::vector<uint8_t>& value) override;
79 void SimulateGattCharacteristicRemoved( 84 void SimulateGattCharacteristicRemoved(
80 BluetoothRemoteGattService* service, 85 BluetoothRemoteGattService* service,
81 BluetoothRemoteGattCharacteristic* characteristic) override; 86 BluetoothRemoteGattCharacteristic* characteristic) override;
82 87
83 // Callback for the bluetooth central manager mock. 88 // Callback for the bluetooth central manager mock.
84 void OnFakeBluetoothDeviceConnectGattCalled(); 89 void OnFakeBluetoothDeviceConnectGattCalled();
85 void OnFakeBluetoothGattDisconnect(); 90 void OnFakeBluetoothGattDisconnect();
(...skipping 28 matching lines...) Expand all
114 BluetoothAdapterMac* adapter_mac_ = nullptr; 119 BluetoothAdapterMac* adapter_mac_ = nullptr;
115 std::unique_ptr<ScopedMockCentralManager> mock_central_manager_; 120 std::unique_ptr<ScopedMockCentralManager> mock_central_manager_;
116 }; 121 };
117 122
118 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 123 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
119 typedef BluetoothTestMac BluetoothTest; 124 typedef BluetoothTestMac BluetoothTest;
120 125
121 } // namespace device 126 } // namespace device
122 127
123 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ 128 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698