diff options
author | shihchienc <shihchienc@google.com> | 2022-10-14 13:45:37 +0000 |
---|---|---|
committer | shihchienc <shihchienc@google.com> | 2022-11-10 05:32:58 +0000 |
commit | 4d5f3b7e0b4229240a04a0216bf4861b2ed14bd6 (patch) | |
tree | 2deb16d40ce98c90b08555b7d106801e4d4c096d /bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp | |
parent | 0a4e57f8e8b9503fcfe68064590ada7469c01f40 (diff) |
Add BluetoothLeAudioCodecsProvider Unit Test
Add unit test for BluetoothLeAudioCodecsProvider and simplify
the public interface of BluetoothLeAudioCodecsProvider class
Bug: 253569201
Test: atest VtsHalBluetoothAudioTargetTest
Test: atest BluetoothLeAudioCodecsProviderTest
Test: manual test
Change-Id: I064eb4058b129a571cf9dbb91b85bafe7236b735
Merged-In: I064eb4058b129a571cf9dbb91b85bafe7236b735
(cherry picked from commit d7f565a943c5c6bf08a16c22ea15c2c6b628a00e)
Diffstat (limited to 'bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp')
-rw-r--r-- | bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp b/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp index 855dd28718..faebbbf32b 100644 --- a/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp +++ b/bluetooth/audio/utils/aidl_session/BluetoothAudioCodecs.cpp @@ -398,8 +398,11 @@ BluetoothAudioCodecs::GetLeAudioOffloadCodecCapabilities( } if (kDefaultOffloadLeAudioCapabilities.empty()) { + auto le_audio_offload_setting = + BluetoothLeAudioCodecsProvider::ParseFromLeAudioOffloadSettingFile(); kDefaultOffloadLeAudioCapabilities = - BluetoothLeAudioCodecsProvider::GetLeAudioCodecCapabilities(); + BluetoothLeAudioCodecsProvider::GetLeAudioCodecCapabilities( + le_audio_offload_setting); } return kDefaultOffloadLeAudioCapabilities; |