Skip to content

RDKEMW-21384: Revert RDKEMW-13335 code changes - #275

Open
KTirumalaSrihari wants to merge 1 commit into
developfrom
topic/RDKEMW-21384
Open

RDKEMW-21384: Revert RDKEMW-13335 code changes#275
KTirumalaSrihari wants to merge 1 commit into
developfrom
topic/RDKEMW-21384

Conversation

@KTirumalaSrihari

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: skondu363 <Srihariraghava_konduritirumala@comcast.com>
Copilot AI review requested due to automatic review settings July 10, 2026 06:53
@KTirumalaSrihari
KTirumalaSrihari requested a review from a team as a code owner July 10, 2026 06:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 reverts previously introduced logic related to DeviceType RFC handling and secure debug-service gating, returning the codebase to a simpler debug-services enablement model.

Changes:

  • Removed getDeviceTypeRFC API surface (production + mocks) and related unit-test coverage.
  • Removed isSecureDbgSrvUnlocked() and simplified GetServURL() gating to rely on build type + isDebugServicesEnabled().
  • Adjusted unit tests/mocks for the reverted behavior (though there is at least one remaining stale expectation).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
unittest/mocks/deviceutils_mock.h Removes getDeviceTypeRFC from the mock interface/API.
unittest/mocks/deviceutils_mock.cpp Removes the extern "C" forwarding wrapper for getDeviceTypeRFC.
unittest/mocks/dbus_handlers_gmock.cpp Removes stub getDeviceTypeRFC implementation from gmock handlers.
unittest/fwdl_interface_gtest.cpp Removes unit tests covering getDeviceTypeRFC.
unittest/deviceutils/device_api_gtest.cpp Removes large test coverage for isSecureDbgSrvUnlocked; adds/adjusts expectations around isDebugServicesEnabled in some GetServURL tests.
src/rfcInterface/rfcinterface.c Removes getDeviceTypeRFC implementation and related include.
src/include/rfcinterface.h Removes RFC_DEVICETYPE define and getDeviceTypeRFC declaration.
src/deviceutils/device_api.h Removes isSecureDbgSrvUnlocked declaration and some GTest-only include logic.
src/deviceutils/device_api.c Removes isSecureDbgSrvUnlocked implementation; updates GetServURL gating logic.
Comments suppressed due to low confidence (1)

unittest/mocks/deviceutils_mock.h:58

  • getDeviceTypeRFC was removed from DeviceUtilsInterface/DeviceUtilsMock, but at least one unit test still expects it (e.g., unittest/deviceutils/device_api_gtest.cpp has an EXPECT_CALL(*g_DeviceUtilsMock, getDeviceTypeRFC(_, _))). This will fail to compile unless the remaining test expectations are removed/updated to match the reverted production logic.
	virtual int getDevicePropertyData(const char *model, char *data, int size) = 0;
	virtual int read_RFCProperty(char* type, const char* key, char *out_value, size_t datasize) = 0;
	virtual int write_RFCProperty(char* type, const char* key, const char *value, RFCVALDATATYPE datatype) = 0;
	virtual int filePresentCheck(const char *filename) = 0;
	virtual int getFileSize(const char *filename) = 0;
	virtual bool isInStateRed() = 0;
	virtual bool isDebugServicesEnabled() = 0;
	virtual bool isDirectCDNEnabled() = 0;

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

Comment thread src/deviceutils/device_api.c
Comment thread src/deviceutils/device_api.c
Comment thread src/deviceutils/device_api.c
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