Skip to content

Commit 39ca20c

Browse files
committed
fix: Changes required for 'manage' after integrating bi-directional
1 parent 7b251bb commit 39ca20c

File tree

20 files changed

+200
-438
lines changed

20 files changed

+200
-438
lines changed

src/sdks/discovery/src/cpp/sdk/cpptest/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ message("Setup ${TESTAPP}")
4646

4747
add_executable(${TESTAPP} DiscoverySDKTest.cpp Main.cpp)
4848

49+
if (ENABLE_INTERACTIVE_APP)
50+
add_compile_definitions(INTERACTIVE_APP)
51+
endif ()
52+
4953
target_link_libraries(${TESTAPP}
5054
PRIVATE
5155
${NAMESPACE}Core::${NAMESPACE}Core

src/sdks/manage/src/cpp/sdk/cpptest/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ message("Setup ${TESTAPP}")
4646

4747
add_executable(${TESTAPP} ManageSDKTest.cpp Main.cpp)
4848

49+
if (ENABLE_INTERACTIVE_APP)
50+
add_compile_definitions(INTERACTIVE_APP)
51+
endif ()
52+
4953
target_link_libraries(${TESTAPP}
5054
PRIVATE
5155
${NAMESPACE}Core::${NAMESPACE}Core
@@ -75,10 +79,13 @@ add_custom_command(
7579
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/${TESTAPP} ${CMAKE_BINARY_DIR}/${FIREBOLT_NAMESPACE}/usr/bin
7680
)
7781

78-
if(ENABLE_UNIT_TESTS)
82+
if(ENABLE_UNIT_TESTS OR ENABLE_INTERACTIVE_APP)
7983
set(UNIT_TESTS_APP FireboltManageUnitTests)
8084

8185
message("Setup ${UNIT_TESTS_APP}")
86+
if (ENABLE_UNIT_TESTS)
87+
add_compile_definitions(UNIT_TEST_SUITE)
88+
endif()
8289

8390
file(GLOB UNIT_TESTS "unit/*")
8491

src/sdks/manage/src/cpp/sdk/cpptest/Main.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,18 @@ void RunAllTests() {
115115
// Provider registration
116116
runTest(ManageSDKTest::RegisterKeyboardProvider, "RegisterKeyboardProvider");
117117
ManageSDKTest::provider_trigger(ManageSDKTest::requestStandard);
118-
runTest(ManageSDKTest::SendResponseMessageToKeyboardProvider, "SendResponseMessageToKeyboardProvider");
119118

120119
runTest(ManageSDKTest::RegisterKeyboardProvider, "RegisterKeyboardProvider");
121120
ManageSDKTest::provider_trigger(ManageSDKTest::requestEmail);
122-
runTest(ManageSDKTest::SendResponseMessageToKeyboardProvider, "SendResponseMessageToKeyboardProvider");
123121

124122
runTest(ManageSDKTest::RegisterKeyboardProvider, "RegisterKeyboardProvider");
125123
ManageSDKTest::provider_trigger(ManageSDKTest::requestPassword);
126-
runTest(ManageSDKTest::SendResponseMessageToKeyboardProvider, "SendResponseMessageToKeyboardProvider");
127124

128-
// runTest(ManageSDKTest::RegisterAcknowledgeChallengeProvider, "RegisterAcknowledgeChallengeProvider");
129-
// ManageSDKTest::provider_trigger(ManageSDKTest::ackRequestChallenge);
130-
// runTest(ManageSDKTest::SendResponseMessageToAcknowledgeChallengeProvider, "SendResponseMessageToAcknowledgeChallengeProvider");
125+
runTest(ManageSDKTest::RegisterAcknowledgeChallengeProvider, "RegisterAcknowledgeChallengeProvider");
126+
ManageSDKTest::provider_trigger(ManageSDKTest::ackRequestChallenge);
131127

132-
// runTest(ManageSDKTest::RegisterPinChallengeProvider, "RegisterPinChallengeProvider");
133-
// ManageSDKTest::provider_trigger(ManageSDKTest::pinRequestChallenge);
134-
// runTest(ManageSDKTest::SendResponseMessageToPinChallengeProvider, "SendResponseMessageToPinChallengeProvider");
128+
runTest(ManageSDKTest::RegisterPinChallengeProvider, "RegisterPinChallengeProvider");
129+
ManageSDKTest::provider_trigger(ManageSDKTest::pinRequestChallenge);
135130

136131

137132
runTest(ManageSDKTest::GlobalSubscribeHdmiAutoLowLatencyModeCapableChanged, "GlobalSubscribeHdmiAutoLowLatencyModeCapableChanged");

0 commit comments

Comments
 (0)