Skip to content

RDKEMW-16778: ENT Service API for retrieving previous reboot info#8

Open
preeja33 wants to merge 3 commits intodevelopfrom
feature/RDKEMW-16778_1
Open

RDKEMW-16778: ENT Service API for retrieving previous reboot info#8
preeja33 wants to merge 3 commits intodevelopfrom
feature/RDKEMW-16778_1

Conversation

@preeja33
Copy link
Copy Markdown

No description provided.

@preeja33 preeja33 requested a review from a team as a code owner April 10, 2026 09:56
Copilot AI review requested due to automatic review settings April 10, 2026 09:56
Copy link
Copy Markdown

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

Adds test support for the new ENT DeviceDiagnostics API that retrieves “previous reboot” information by extending the existing GoogleMock-based IDeviceDiagnostics mock.

Changes:

  • Extend DeviceDiagnosticsMock with a GetPreviousRebootInfo(...) mock method to match the updated IDeviceDiagnostics interface.

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

Comment thread Tests/mocks/DeviceDiagnosticsMock.h Outdated
MOCK_METHOD(void, AddRef, (), (const, override));
MOCK_METHOD(uint32_t, Release, (), (const, override));
MOCK_METHOD(void*, QueryInterface, (const uint32_t interfacenumber), (override));
MOCK_METHOD(Core::hresult, GetPreviousRebootInfo, (RebootInfo& rebootInfo, bool& success),(override));
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

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

Core::hresult and Exchange::IDeviceDiagnostics::RebootInfo are used here, but this header does not define namespace Core = WPEFramework::Core; / namespace Exchange = WPEFramework::Exchange; (nor using namespace WPEFramework;). This will fail to compile in configurations where those aliases are not provided transitively. Prefer using the already-imported hresult and IDeviceDiagnostics::RebootInfo (or add explicit namespace Core/Exchange aliases in this file).

Suggested change
MOCK_METHOD(Core::hresult, GetPreviousRebootInfo, (RebootInfo& rebootInfo, bool& success),(override));
MOCK_METHOD(hresult, GetPreviousRebootInfo, (IDeviceDiagnostics::RebootInfo& rebootInfo, bool& success), (override));

Copilot uses AI. Check for mistakes.
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