Skip to content

RDKEMW-16053 : Implement L1/L2 test cases for SystemServices plugin.#28

Open
balav08 wants to merge 6 commits into
developfrom
feature/RDKEMW-16053
Open

RDKEMW-16053 : Implement L1/L2 test cases for SystemServices plugin.#28
balav08 wants to merge 6 commits into
developfrom
feature/RDKEMW-16053

Conversation

@balav08
Copy link
Copy Markdown
Contributor

@balav08 balav08 commented May 25, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 25, 2026 12:01
@balav08 balav08 requested a review from a team as a code owner May 25, 2026 12:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the test framework’s IARM bus mock to support additional bus lifecycle operations needed by the new SystemServices L1/L2 test cases.

Changes:

  • Added IARM_Bus_Disconnect() and IARM_Bus_Term() wrappers to Tests/mocks/Iarm.cpp that forward calls to the active mock implementation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Tests/mocks/Iarm.cpp Outdated
Comment on lines +51 to +64
IARM_Result_t IarmBus::IARM_Bus_Disconnect()
{
TEST_LOG("Inside IARM_Bus_Disconnect");
EXPECT_NE(impl, nullptr);
return impl->IARM_Bus_Disconnect();
}

IARM_Result_t IarmBus::IARM_Bus_Term()
{
TEST_LOG("Inside IARM_Bus_Term");
EXPECT_NE(impl, nullptr);
return impl->IARM_Bus_Term();
}

Copilot AI review requested due to automatic review settings May 25, 2026 12:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

Tests/mocks/Iarm.cpp:63

  • IarmBus::IARM_Bus_Term() is defined twice in this translation unit (another definition exists later in the file). This will cause a redefinition/duplicate symbol compile error; remove one of the definitions and keep a single implementation.
IARM_Result_t IarmBus::IARM_Bus_Term()
{
    TEST_LOG("Inside IARM_Bus_Term");
    EXPECT_NE(impl, nullptr);
    return impl->IARM_Bus_Term();
}

Comment thread Tests/mocks/Iarm.cpp Outdated
Comment on lines +51 to +64
IARM_Result_t IarmBus::IARM_Bus_Disconnect()
{
TEST_LOG("Inside IARM_Bus_Disconnect");
EXPECT_NE(impl, nullptr);
return impl->IARM_Bus_Disconnect();
}

IARM_Result_t IarmBus::IARM_Bus_Term()
{
TEST_LOG("Inside IARM_Bus_Term");
EXPECT_NE(impl, nullptr);
return impl->IARM_Bus_Term();
}

Comment on lines 102 to +103
set(ENTSERVICES_INC ../../../../entservices-deviceanddisplay/helpers ../../../../entservices-infra/helpers ../../../../entservices-mediaanddrm/helpers ../../../../entservices-softwareupdate/helpers ../../../../entservices-inputoutput/helpers ../../../../entservices-peripherals/helpers ../../../../entservices-connectivity/helpers)
set(ENTSERVICES_INC ../../../../entservices-helpers/helpers)
Copilot AI review requested due to automatic review settings May 25, 2026 14:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

target_link_libraries(${MODULE_NAME} PRIVATE ${NAMESPACE}Plugins::${NAMESPACE}Plugins gtest_main gmock gtest)

set(ENTSERVICES_INC ../../../../entservices-deviceanddisplay/helpers ../../../../entservices-infra/helpers ../../../../entservices-mediaanddrm/helpers ../../../../entservices-softwareupdate/helpers ../../../../entservices-inputoutput/helpers ../../../../entservices-peripherals/helpers ../../../../entservices-connectivity/helpers)
set(ENTSERVICES_INC ../../../../entservices-helpers/helpers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants