diff options
author | mcchou <mcchou@chromium.org> | 2015-01-15 12:18:03 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-15 20:18:42 +0000 |
commit | a7094e2e556259582071826cda72dc2cc1a3a9fc (patch) | |
tree | 2ecc85142065fbefc5f1da9d29c555d4ecf11a39 /device/bluetooth/bluetooth_adapter_unittest.cc | |
parent | 735db9ff60ce058f32d55fc88ad76503c6ec3e35 (diff) | |
download | chromium_src-a7094e2e556259582071826cda72dc2cc1a3a9fc.zip chromium_src-a7094e2e556259582071826cda72dc2cc1a3a9fc.tar.gz chromium_src-a7094e2e556259582071826cda72dc2cc1a3a9fc.tar.bz2 |
device/bluetooth: Add RegisterAudioSink method to Bluetooth adapter.
This CL adds RegisterAudioSink method to Bluetooth adapter
abstraction class and its subclasses.For ChromeOS, the
implementation will be in the following CL. As for Mac and Windows,
there is no implementation for now. This CL also adds
BluetoothAudioSink::ErrorCode and BluetoothAudioSink::Unregister.
BUG=441581
Review URL: https://codereview.chromium.org/782293004
Cr-Commit-Position: refs/heads/master@{#311724}
Diffstat (limited to 'device/bluetooth/bluetooth_adapter_unittest.cc')
-rw-r--r-- | device/bluetooth/bluetooth_adapter_unittest.cc | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/device/bluetooth/bluetooth_adapter_unittest.cc b/device/bluetooth/bluetooth_adapter_unittest.cc index b7a6482..5dd10b1 100644 --- a/device/bluetooth/bluetooth_adapter_unittest.cc +++ b/device/bluetooth/bluetooth_adapter_unittest.cc @@ -64,6 +64,11 @@ class TestBluetoothAdapter : public BluetoothAdapter { const CreateServiceCallback& callback, const CreateServiceErrorCallback& error_callback) override {} + void RegisterAudioSink( + const BluetoothAudioSink::Options& options, + const AcquiredCallback& callback, + const BluetoothAudioSink::ErrorCallback& error_callback) override {} + protected: ~TestBluetoothAdapter() override {} @@ -78,15 +83,15 @@ class TestBluetoothAdapter : public BluetoothAdapter { }; class TestPairingDelegate : public BluetoothDevice::PairingDelegate { - public: - void RequestPinCode(BluetoothDevice* device) override {} - void RequestPasskey(BluetoothDevice* device) override {} - void DisplayPinCode(BluetoothDevice* device, - const std::string& pincode) override {} - void DisplayPasskey(BluetoothDevice* device, uint32 passkey) override {} - void KeysEntered(BluetoothDevice* device, uint32 entered) override {} - void ConfirmPasskey(BluetoothDevice* device, uint32 passkey) override {} - void AuthorizePairing(BluetoothDevice* device) override {} + public: + void RequestPinCode(BluetoothDevice* device) override {} + void RequestPasskey(BluetoothDevice* device) override {} + void DisplayPinCode(BluetoothDevice* device, + const std::string& pincode) override {} + void DisplayPasskey(BluetoothDevice* device, uint32 passkey) override {} + void KeysEntered(BluetoothDevice* device, uint32 entered) override {} + void ConfirmPasskey(BluetoothDevice* device, uint32 passkey) override {} + void AuthorizePairing(BluetoothDevice* device) override {} }; |