Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
37f4a0a
RDKEMW-9659: Implement the Non-Thunder client using libds methods in …
Apr 14, 2026
19d2a27
Resolved compilation error dsVideoCodecHevcProfiles_t
Apr 15, 2026
b9ea520
RDKEMW - Remove pr dependency on this workflow (#13)
srikanth-vv Apr 17, 2026
24204e8
1.0.3 release changelog updates
rdkcm-rdke Apr 17, 2026
84a45b3
Merge tag '1.0.3' into develop
rdkcm-rdke Apr 17, 2026
17a6505
Merge branch 'release/1.0.3'
rdkcm-rdke Apr 17, 2026
1c2803c
RDKEMW-16428: Add cmdline entry into proc_t to fix build error in UT
yuvaramachandran-gurusamy Apr 20, 2026
7af8a8f
Merge pull request #14 from rdkcentral/topic/RDKEMW-16428
apatel859 Apr 20, 2026
2472ff5
1.0.4 release change log updates
apatel859 Apr 20, 2026
11014dc
Merge branch 'release/1.0.4'
apatel859 Apr 20, 2026
4ec3a2d
Merge tag '1.0.4' into develop
apatel859 Apr 20, 2026
bb13d17
RDKEMW-14961 - Unit tests for Iarmmgr (#5)
hgfell683 Apr 28, 2026
18bfa7a
1.0.5 release changelog updates
rdkcm-rdke Apr 28, 2026
c96ae85
Merge tag '1.0.5' into develop
rdkcm-rdke Apr 28, 2026
390680b
Merge branch 'release/1.0.5'
rdkcm-rdke Apr 28, 2026
2513a19
RDKEMW-16778: ENT Service API for retrieving previous reboot info (#8)
preeja33 Apr 30, 2026
070316a
1.0.6 release changelog updates
rdkcm-rdke Apr 30, 2026
981bc00
Merge tag '1.0.6' into develop
rdkcm-rdke Apr 30, 2026
5c88462
Merge branch 'release/1.0.6'
rdkcm-rdke Apr 30, 2026
594296c
Merge branch 'develop' into topic/RDKEMW-9659
apatel859 May 13, 2026
b36f3e2
Merge pull request #17 from rdkcentral/topic/RDKEMW-9659
apatel859 May 18, 2026
630fccb
1.0.7 release change log updates
apatel859 May 18, 2026
6084b2c
Merge branch 'release/1.0.7'
apatel859 May 18, 2026
11140ab
Merge tag '1.0.7' into develop
apatel859 May 18, 2026
bb8088d
RDKEMW-18828: Fix for Native build and l1 test failure (#26)
yuvaramachandran-gurusamy May 22, 2026
60dfc5b
1.0.8 release changelog updates
rdkcm-rdke May 22, 2026
045e80c
Merge branch 'release/1.0.8'
rdkcm-rdke May 22, 2026
53f8015
Merge tag '1.0.8' into develop
rdkcm-rdke May 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/component-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ permissions:
contents: write

on:
pull_request:
types: [opened, edited, ready_for_review, closed]
branches:
- develop
workflow_dispatch:
inputs:
tag:
Expand Down
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,62 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [1.0.8](https://github.com/rdkcentral/entservices-testframework/compare/1.0.7...1.0.8)

- RDKEMW-18828: Fix for Native build and l1 test failure [`#26`](https://github.com/rdkcentral/entservices-testframework/pull/26)
- Merge tag '1.0.7' into develop [`11140ab`](https://github.com/rdkcentral/entservices-testframework/commit/11140ab44c0cecec91cc89f288c8b3f42e4fc8b0)

#### [1.0.7](https://github.com/rdkcentral/entservices-testframework/compare/1.0.6...1.0.7)

> 18 May 2026

- RDKEMW-9659: Implement the Non-Thunder client using libds methods in DisplaySettings [`#17`](https://github.com/rdkcentral/entservices-testframework/pull/17)
- 1.0.7 release change log updates [`630fccb`](https://github.com/rdkcentral/entservices-testframework/commit/630fccb99082c4cf828ab8adf7088239296efd9f)
- Merge tag '1.0.6' into develop [`981bc00`](https://github.com/rdkcentral/entservices-testframework/commit/981bc00e8fd63065d84397b14ebc2d085955f19d)
- Resolved compilation error dsVideoCodecHevcProfiles_t [`19d2a27`](https://github.com/rdkcentral/entservices-testframework/commit/19d2a27ae3081007a389b0a257cad08a9840dd61)

#### [1.0.6](https://github.com/rdkcentral/entservices-testframework/compare/1.0.5...1.0.6)

> 30 April 2026

- RDKEMW-16778: ENT Service API for retrieving previous reboot info [`#8`](https://github.com/rdkcentral/entservices-testframework/pull/8)
- 1.0.6 release changelog updates [`070316a`](https://github.com/rdkcentral/entservices-testframework/commit/070316a21a4ccf30c6d8f6935f796425b069b6ac)
- Merge tag '1.0.5' into develop [`c96ae85`](https://github.com/rdkcentral/entservices-testframework/commit/c96ae851d2e22b6e33f664c5819954b53ede55bb)

#### [1.0.5](https://github.com/rdkcentral/entservices-testframework/compare/1.0.4...1.0.5)

> 28 April 2026

- RDKEMW-14961 - Unit tests for Iarmmgr [`#5`](https://github.com/rdkcentral/entservices-testframework/pull/5)
- 1.0.5 release changelog updates [`18bfa7a`](https://github.com/rdkcentral/entservices-testframework/commit/18bfa7af0cd47ba7d32e8e1a911abb90737a3459)
- Merge tag '1.0.4' into develop [`4ec3a2d`](https://github.com/rdkcentral/entservices-testframework/commit/4ec3a2ddb430dc4be729dff1fde5a94fd568c03b)

#### [1.0.4](https://github.com/rdkcentral/entservices-testframework/compare/1.0.3...1.0.4)

> 20 April 2026

- RDKEMW-16428: Add cmdline entry into proc_t to fix build error in UT [`#14`](https://github.com/rdkcentral/entservices-testframework/pull/14)
- 1.0.4 release change log updates [`2472ff5`](https://github.com/rdkcentral/entservices-testframework/commit/2472ff552281c20ebc859b5e862a68a4f80474d0)
- Merge tag '1.0.3' into develop [`84a45b3`](https://github.com/rdkcentral/entservices-testframework/commit/84a45b33bf3f68ef26de6b080703e2f45b523810)

#### [1.0.3](https://github.com/rdkcentral/entservices-testframework/compare/1.0.2...1.0.3)

> 17 April 2026

- RDKEMW - Remove pr dependency on this workflow [`#13`](https://github.com/rdkcentral/entservices-testframework/pull/13)
- Feature/rdkemw 17153 [`#12`](https://github.com/rdkcentral/entservices-testframework/pull/12)
- 1.0.3 release changelog updates [`24204e8`](https://github.com/rdkcentral/entservices-testframework/commit/24204e8b8687fdc580503dd37d593a221cc02918)
- Merge tag '1.0.2' into develop [`7eb1841`](https://github.com/rdkcentral/entservices-testframework/commit/7eb1841706384b114628baf14906a0e2c2a448a5)

#### [1.0.2](https://github.com/rdkcentral/entservices-testframework/compare/1.0.1...1.0.2)

> 15 April 2026

- feature/RDKEMW-17153 - Update component release yml file [`#10`](https://github.com/rdkcentral/entservices-testframework/pull/10)
- RDKE-767 : [OSCR SCAN] RDKE - entservices-testframework [`#9`](https://github.com/rdkcentral/entservices-testframework/pull/9)
- RDKEMW-15693: Add API to clear CDN access token for AuthService plugin [`#6`](https://github.com/rdkcentral/entservices-testframework/pull/6)
- Update CODEOWNERS file [`#3`](https://github.com/rdkcentral/entservices-testframework/pull/3)
- 1.0.2 release changelog updates [`abcdc7e`](https://github.com/rdkcentral/entservices-testframework/commit/abcdc7e65613f03cad2e5a125a06103487323839)
- Update CODEOWNERS [`a27e8e7`](https://github.com/rdkcentral/entservices-testframework/commit/a27e8e7f63082514797dd1ee00a1aaefba301925)
- Merge tag '1.0.1' into develop [`e62bfcd`](https://github.com/rdkcentral/entservices-testframework/commit/e62bfcdf2da3c85138b2c55a59633e96a0129dde)

Expand Down
1 change: 1 addition & 0 deletions Tests/mocks/DeviceDiagnosticsMock.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class DeviceDiagnosticsMock : public IDeviceDiagnostics {
MOCK_METHOD(void, AddRef, (), (const, override));
MOCK_METHOD(uint32_t, Release, (), (const, override));
MOCK_METHOD(void*, QueryInterface, (const uint32_t interfacenumber), (override));
MOCK_METHOD(hresult, GetPreviousRebootInfo, (RebootInfo& rebootInfo, bool& success),(override));
};

class DeviceDiagnosticsNotificationMock : public IDeviceDiagnostics::INotification {
Expand Down
24 changes: 24 additions & 0 deletions Tests/mocks/Iarm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,27 @@ IARM_Result_t IarmBus::IARM_Bus_RegisterCall(const char* methodName, IARM_BusCal
return impl->IARM_Bus_RegisterCall(methodName, handler);
}

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();
}

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

IARM_Result_t IarmBus::IARM_Bus_Call_with_IPCTimeout(const char *ownerName, const char *methodName, void *arg, size_t argLen, int timeout)
{
EXPECT_NE(impl, nullptr);
Expand All @@ -106,12 +127,15 @@ IARM_Result_t IarmBus::IARM_Bus_Call_with_IPCTimeout(const char *ownerName, con

IARM_Result_t (*IARM_Bus_Init)(const char*) = &IarmBus::IARM_Bus_Init;
IARM_Result_t (*IARM_Bus_Connect)() = &IarmBus::IARM_Bus_Connect;
IARM_Result_t (*IARM_Bus_Disconnect)() = &IarmBus::IARM_Bus_Disconnect;
IARM_Result_t (*IARM_Bus_Term)() = &IarmBus::IARM_Bus_Term;
IARM_Result_t (*IARM_Bus_IsConnected)(const char*,int*) = &IarmBus::IARM_Bus_IsConnected;
IARM_Result_t (*IARM_Bus_RegisterEventHandler)(const char*,IARM_EventId_t,IARM_EventHandler_t) = &IarmBus::IARM_Bus_RegisterEventHandler;
IARM_Result_t (*IARM_Bus_UnRegisterEventHandler)(const char*,IARM_EventId_t) = &IarmBus::IARM_Bus_UnRegisterEventHandler;
IARM_Result_t (*IARM_Bus_RemoveEventHandler)(const char*,IARM_EventId_t,IARM_EventHandler_t) = &IarmBus::IARM_Bus_RemoveEventHandler;
IARM_Result_t (*IARM_Bus_Call)(const char*,const char*,void*,size_t) = &IarmBus::IARM_Bus_Call;
IARM_Result_t (*IARM_Bus_BroadcastEvent)(const char *ownerName, IARM_EventId_t eventId, void *arg, size_t argLen) = &IarmBus::IARM_Bus_BroadcastEvent;
IARM_Result_t (*IARM_Bus_RegisterCall)(const char*,IARM_BusCall_t) = &IarmBus::IARM_Bus_RegisterCall;
IARM_Result_t (*IARM_Bus_RegisterEvent)(IARM_EventId_t) = &IarmBus::IARM_Bus_RegisterEvent;
IARM_Result_t (*IARM_Bus_Call_with_IPCTimeout)(const char*,const char*,void*,size_t,int) = &IarmBus::IARM_Bus_Call_with_IPCTimeout;

16 changes: 16 additions & 0 deletions Tests/mocks/Iarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class IarmBusImpl {
virtual IARM_Result_t IARM_Bus_Call(const char* ownerName, const char* methodName, void* arg, size_t argLen) = 0;
virtual IARM_Result_t IARM_Bus_BroadcastEvent(const char *ownerName, IARM_EventId_t eventId, void *arg, size_t argLen) = 0;
virtual IARM_Result_t IARM_Bus_RegisterCall(const char* methodName, IARM_BusCall_t handler) = 0;
virtual IARM_Result_t IARM_Bus_RegisterEvent(IARM_EventId_t maxEventId) = 0;
virtual IARM_Result_t IARM_Bus_Call_with_IPCTimeout(const char *ownerName, const char *methodName, void *arg, size_t argLen, int timeout) = 0;
};

Expand All @@ -75,6 +76,7 @@ class IarmBus {
static IARM_Result_t IARM_Bus_Call(const char* ownerName, const char* methodName, void* arg, size_t argLen);
static IARM_Result_t IARM_Bus_BroadcastEvent(const char *ownerName, IARM_EventId_t eventId, void *arg, size_t argLen) ;
static IARM_Result_t IARM_Bus_RegisterCall(const char* methodName, IARM_BusCall_t handler);
static IARM_Result_t IARM_Bus_RegisterEvent(IARM_EventId_t maxEventId);
static IARM_Result_t IARM_Bus_Call_with_IPCTimeout(const char *ownerName, const char *methodName, void *arg, size_t argLen, int timeout);
};

Expand All @@ -89,6 +91,7 @@ extern IARM_Result_t (*IARM_Bus_RemoveEventHandler)(const char*,IARM_EventId_t,I
extern IARM_Result_t (*IARM_Bus_Call)(const char*,const char*,void*,size_t);
extern IARM_Result_t (*IARM_Bus_BroadcastEvent)(const char *,IARM_EventId_t,void *,size_t);
extern IARM_Result_t (*IARM_Bus_RegisterCall)(const char*,IARM_BusCall_t);
extern IARM_Result_t (*IARM_Bus_RegisterEvent)(IARM_EventId_t);
extern IARM_Result_t (*IARM_Bus_Call_with_IPCTimeout)(const char*,const char*,void*,size_t,int);

#define IARM_BUS_COMMON_API_SysModeChange "SysModeChange"
Expand Down Expand Up @@ -249,11 +252,14 @@ typedef struct _IARM_Bus_MFRLib_SetBLPattern_Param_t {
mfrBlPattern_t pattern;
} IARM_Bus_MFRLib_SetBLPattern_Param_t;

#ifndef IARM_BUS_MFRLIB_GETSERIALIZEDDATA_DEFINED
#define IARM_BUS_MFRLIB_GETSERIALIZEDDATA_DEFINED
typedef struct _IARM_Bus_MFRLib_GetSerializedData_Param_t {
mfrSerializedType_t type;
char buffer[1280];
int bufLen;
} IARM_Bus_MFRLib_GetSerializedData_Param_t;
#endif /* IARM_BUS_MFRLIB_GETSERIALIZEDDATA_DEFINED */

#define PWRMGR_MAX_REBOOT_REASON_LENGTH 100

Expand Down Expand Up @@ -434,6 +440,11 @@ typedef struct _IARM_BUS_PWRMgr_WareHouseOpn_EventData_t {
#define IARM_BUS_PWRMGR_API_SetWakeupSrcConfig "setWakeupSrcConfig"
#define IARM_BUS_PWRMGR_API_GetWakeupSrcConfig "getWakeupSrcConfig" /*!< gets wakup configuration*/

/* The block below duplicates types from sysMgr/include/sysMgr.h.
* Guard it so that when sysMgr.h is included first (e.g. in sysmgr tests)
* the compiler sees only one definition of each type. */
#ifndef _IARM_BUS_SYSMGR_H

#define IARM_BUS_SYSMGR_NAME "SYSMgr"
#define IARM_BUS_SYSMGR_API_GetSystemStates "GetSystemStates"

Expand Down Expand Up @@ -518,6 +529,7 @@ typedef enum _SYSMgr_SystemState_t {
IARM_BUS_SYSMGR_SYSSTATE_FIRMWARE_UPDATE_STATE, //43, Added as part of RDK-19978, As the IARM
IARM_BUS_SYSMGR_SYSSTATE_USB_DETECTED, //44
IARM_BUS_SYSMGR_SYSSTATE_LOG_UPLOAD, //45
IARM_BUS_SYSMGR_SYSSTATE_RED_RECOV_UPDATE_STATE, //46
} IARM_Bus_SYSMgr_SystemState_t;

typedef enum _SYSMgr_FirmwareUpdateState_t {
Expand Down Expand Up @@ -624,11 +636,15 @@ typedef struct _IARM_Bus_SYSMgr_GetSystemStates_Param_t {
state_property bootup;
state_property dst_offset;
state_property rf_connected;
state_property partnerid_changed;
state_property ip_mode;
state_property qam_ready_status;
state_property firmware_update_state;
state_property red_recov_state;
} IARM_Bus_SYSMgr_GetSystemStates_Param_t;

#endif /* !_IARM_BUS_SYSMGR_H */

#define IARM_BUS_DSMGR_NAME "DSMgr"

/*! Events published from DS Mananger */
Expand Down
1 change: 1 addition & 0 deletions Tests/mocks/IarmBusMock.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class IarmBusImplMock : public IarmBusImpl {
MOCK_METHOD(IARM_Result_t, IARM_Bus_RemoveEventHandler, (const char* ownerName, IARM_EventId_t eventId, IARM_EventHandler_t handler), (override));
MOCK_METHOD(IARM_Result_t, IARM_Bus_Call, (const char* ownerName, const char* methodName, void* arg, size_t argLen), (override));
MOCK_METHOD(IARM_Result_t, IARM_Bus_RegisterCall, (const char* methodName, IARM_BusCall_t handler), (override));
MOCK_METHOD(IARM_Result_t, IARM_Bus_RegisterEvent, (IARM_EventId_t maxEventId), (override));
MOCK_METHOD(IARM_Result_t, IARM_Bus_BroadcastEvent, (const char *ownerName, IARM_EventId_t eventId, void *arg, size_t argLen), (override));
MOCK_METHOD(IARM_Result_t, IARM_Bus_Call_with_IPCTimeout, (const char *ownerName, const char *methodName, void *arg, size_t argLen, int timeout), (override));
};
1 change: 1 addition & 0 deletions Tests/mocks/NetworkManagerMock.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class MockINetworkManager : public INetworkManager
MOCK_METHOD(uint32_t, GetKnownSSIDs, (IStringIterator*& ssids), (override));
MOCK_METHOD(uint32_t, AddToKnownSSIDs, (const WiFiConnectTo& ssid), (override));
MOCK_METHOD(uint32_t, RemoveKnownSSID, (const string& ssid), (override));
MOCK_METHOD(uint32_t, ConnectToKnownSSID, (const string& ssid), (override));
MOCK_METHOD(uint32_t, WiFiConnect, (const WiFiConnectTo& ssid), (override));
MOCK_METHOD(uint32_t, WiFiDisconnect, (), (override));
MOCK_METHOD(uint32_t, GetConnectedSSID, (WiFiSSIDInfo& ssidInfo), (override));
Expand Down
7 changes: 7 additions & 0 deletions Tests/mocks/Telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ T2ERROR TelemetryApi::t2_event_d(const char* marker, int value)
EXPECT_NE(impl, nullptr);
return impl->t2_event_d(marker, value);
}

T2ERROR TelemetryApi::t2_event_f(char* marker, double value)
{
EXPECT_NE(impl, nullptr);
return impl->t2_event_f(marker, value);
}
void (*t2_init)(char*) = &TelemetryApi::t2_init;
void (*t2_uninit)(void) = &TelemetryApi::t2_uninit;
T2ERROR (*t2_event_s)(const char*,const char*) = &TelemetryApi::t2_event_s;
T2ERROR (*t2_event_d)(const char*,int) = &TelemetryApi::t2_event_d;
T2ERROR (*t2_event_f)(char*,double) = &TelemetryApi::t2_event_f;
3 changes: 3 additions & 0 deletions Tests/mocks/Telemetry.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class TelemetryApiImpl {
virtual void t2_uninit(void) = 0;
virtual T2ERROR t2_event_s(const char* marker, const char* value) = 0;
virtual T2ERROR t2_event_d(const char* marker, int value) = 0;
virtual T2ERROR t2_event_f(char* marker, double value) = 0;
};

class TelemetryApi {
Expand All @@ -52,10 +53,12 @@ class TelemetryApi {
static void t2_uninit(void);
static T2ERROR t2_event_s(const char* marker, const char* value);
static T2ERROR t2_event_d(const char* marker, int value);
static T2ERROR t2_event_f(char* marker, double value);
};

extern void (*t2_init)(char*);
extern void (*t2_uninit)(void);
extern T2ERROR (*t2_event_s)(const char*,const char*);
extern T2ERROR (*t2_event_d)(const char*,int);
extern T2ERROR (*t2_event_f)(char*,double);

1 change: 1 addition & 0 deletions Tests/mocks/TelemetryMock.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class TelemetryApiImplMock : public TelemetryApiImpl, public ITelemetry {
MOCK_METHOD(void, t2_uninit, (), (override));
MOCK_METHOD(T2ERROR, t2_event_s, (const char* marker, const char* value), (override));
MOCK_METHOD(T2ERROR, t2_event_d, (const char* marker, int value), (override));
MOCK_METHOD(T2ERROR, t2_event_f, (char* marker, double value), (override));

MOCK_METHOD(hresult, Register, (INotification *notification), (override));
MOCK_METHOD(hresult, Unregister, (INotification *notification), (override));
Expand Down
22 changes: 22 additions & 0 deletions Tests/mocks/Wraps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ extern "C" FILE *__wrap_fopen(const char *pathname, const char *mode)
return Wraps::getInstance().fopen(pathname, mode);
}

extern "C" int __wrap_fclose(FILE *stream)
{
return Wraps::getInstance().fclose(stream);
}

extern "C" char *__wrap_fgets(char *s, int size, FILE *stream)
{
return Wraps::getInstance().fgets(s, size, stream);
}


WrapsImpl* Wraps::impl = nullptr;

Expand Down Expand Up @@ -530,3 +540,15 @@ FILE *Wraps::fopen(const char *pathname, const char *mode)
return result;
}

int Wraps::fclose(FILE *stream)
{
EXPECT_NE(impl, nullptr);
return impl->fclose(stream);
}

char *Wraps::fgets(char *s, int size, FILE *stream)
{
EXPECT_NE(impl, nullptr);
return impl->fgets(s, size, stream);
}

4 changes: 4 additions & 0 deletions Tests/mocks/Wraps.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class WrapsImpl {
virtual int stat(const char* path, struct stat* info) =0;
virtual int open(const char* pathname, int flags, mode_t mode) = 0;
virtual FILE *fopen(const char *pathname, const char *mode) = 0;
virtual int fclose(FILE *stream) = 0;
virtual char *fgets(char *s, int size, FILE *stream) = 0;
virtual int umount(const char* path) = 0;
virtual int rmdir(const char* pathname) = 0;
virtual time_t time(time_t* arg) = 0;
Expand Down Expand Up @@ -119,6 +121,8 @@ class Wraps {
static int stat(const char* path, struct stat* info);
static int open(const char* pathname, int flags, mode_t mode);
FILE *fopen(const char *pathname, const char *mode);
int fclose(FILE *stream);
char *fgets(char *s, int size, FILE *stream);
static int umount(const char* path);
static int rmdir(const char* pathname);
static time_t time(time_t* arg);
Expand Down
2 changes: 2 additions & 0 deletions Tests/mocks/WrapsMock.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class WrapsImplMock : public WrapsImpl {
MOCK_METHOD(int, stat, (const char* path, struct stat* info), (override));
MOCK_METHOD(int, open, (const char* pathname, int flags, mode_t mode),(override));
MOCK_METHOD(FILE*, fopen, (const char *pathname, const char *mode),(override));
MOCK_METHOD(int, fclose, (FILE *stream), (override));
MOCK_METHOD(char*, fgets, (char *s, int size, FILE *stream), (override));
MOCK_METHOD(int, umount, (const char* path), (override));
MOCK_METHOD(int, rmdir, (const char* pathname), (override));
MOCK_METHOD(time_t, time, (time_t* arg), (override));
Expand Down
Loading
Loading