Skip to content

Commit 5b98745

Browse files
Merge pull request rdkcentral#5935 from ANANTHMARIMUTHU/sprint/24Q4 (rdkcentral#5994) (rdkcentral#6000)
RDK-52708 - Add Unit Tests for RDKServices (Thunder Plugins) - Phase 10 Co-authored-by: DamianoBaroneSky <[email protected]>
1 parent 3a7b76a commit 5b98745

File tree

8 files changed

+3939
-0
lines changed

8 files changed

+3939
-0
lines changed

.github/workflows/L1-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ jobs:
211211
pkg.h
212212
secure_wrapper.h
213213
wpa_ctrl.h
214+
btmgr.h
214215
&&
215216
cp -r /usr/include/gstreamer-1.0/gst /usr/include/glib-2.0/* /usr/lib/x86_64-linux-gnu/glib-2.0/include/* /usr/local/include/trower-base64/base64.h .
216217
@@ -294,6 +295,7 @@ jobs:
294295
-DPLUGIN_TEXTTOSPEECH=ON
295296
-DPLUGIN_SYSTEMAUDIOPLAYER=ON
296297
-DPLUGIN_MIRACAST=ON
298+
-DPLUGIN_BLUETOOTH=ON
297299
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
298300
&&
299301
cmake --build build/rdkservices -j8

Bluetooth/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
3232
CXX_STANDARD 11
3333
CXX_STANDARD_REQUIRED YES)
3434

35+
set_source_files_properties(Bluetooth.cpp PROPERTIES COMPILE_FLAGS "-fexceptions")
36+
3537
list(APPEND CMAKE_MODULE_PATH
3638
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
3739

Tests/L1Tests/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ add_executable(${PROJECT_NAME}
4545
../mocks/rdkshell.cpp
4646
../mocks/opkgMock.cpp
4747
../mocks/WpaCtrl.cpp
48+
../mocks/BluetoothMocks.cpp
4849
)
4950

5051
set_source_files_properties(
@@ -102,6 +103,7 @@ include_directories(../../LocationSync
102103
../../Miracast/MiracastService/P2P
103104
../../Miracast/MiracastPlayer
104105
../../Miracast/MiracastPlayer/RTSP
106+
../../Bluetooth
105107
)
106108
link_directories(../../LocationSync
107109
../../SecurityAgent
@@ -141,6 +143,7 @@ link_directories(../../LocationSync
141143
../../TextToSpeech
142144
../../SystemAudioPlayer
143145
../../Miracast
146+
../../Bluetooth
144147
)
145148

146149
target_link_libraries(${PROJECT_NAME}
@@ -184,6 +187,7 @@ target_link_libraries(${PROJECT_NAME}
184187
${NAMESPACE}SystemAudioPlayer
185188
${NAMESPACE}MiracastService
186189
${NAMESPACE}MiracastPlayer
190+
${NAMESPACE}Bluetooth
187191
)
188192

189193
target_include_directories(${PROJECT_NAME}

Tests/L1Tests/tests/test_Bluetooth.cpp

Lines changed: 2413 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)