Skip to content

Commit

Permalink
RDK-44762 : Implement Unit Test framework to cover L1 test cases in N… (
Browse files Browse the repository at this point in the history
rdkcentral#4754)

* RDK-44762 : Implement Unit Test framework to cover L1 test cases in Network Thunder Plugin (rdkcentral#4659)

Reason for change: Adding new gtest cases
Test Procedure: Run gtest
Risks: High
Signed-off-by: Akshay kumar <[email protected]>

* RDK-44763 : Implement Unit Test framework to cover L1 test cases in WiFiManager Thunder Plugin (rdkcentral#4676)

Reason for change: Adding new gtest cases
Test Procedure: Run gtest
Risks: High
Signed-off-by: Akshay kumar <[email protected]>

---------

Co-authored-by: Karunakaran A <[email protected]>
  • Loading branch information
AkshayKumar2794 and karuna2git authored Dec 22, 2023
1 parent b24035f commit 5c2cd34
Show file tree
Hide file tree
Showing 6 changed files with 1,471 additions and 354 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ jobs:
-DCMAKE_INSTALL_PREFIX="${{github.workspace}}/install/usr"
-DCMAKE_MODULE_PATH="${{github.workspace}}/install/tools/cmake"
-DCMAKE_CXX_FLAGS="
-fprofile-arcs
-ftest-coverage
-I ${{github.workspace}}/rdkservices/Tests/headers
-I ${{github.workspace}}/rdkservices/Tests/headers/audiocapturemgr
-I ${{github.workspace}}/rdkservices/Tests/headers/rdk/ds
Expand Down
4 changes: 4 additions & 0 deletions Network/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ All notable changes to this RDK Service will be documented in this file.

* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.

## [1.3.2] - 2023-12-21
### Changed
- Changed eventHandler function to public

## [1.3.1] - 2023-11-30
### Fixed
- Addressed the IPv4 & IPv6 cache issue where it was not suppose to be cached when DNS or other parameter is not received yet
Expand Down
2 changes: 1 addition & 1 deletion Network/Network.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ namespace WPEFramework {
void onInterfaceIPAddressChanged(std::string interface, std::string ipv6Addr, std::string ipv4Addr, bool acquired);
void onDefaultInterfaceChanged(std::string oldInterface, std::string newInterface);

static void eventHandler(const char *owner, IARM_EventId_t eventId, void *data, size_t len);
void iarmEventHandler(const char *owner, IARM_EventId_t eventId, void *data, size_t len);

// Netmask Validation
Expand All @@ -222,6 +221,7 @@ namespace WPEFramework {
public:
Network();
virtual ~Network();
static void eventHandler(const char *owner, IARM_EventId_t eventId, void *data, size_t len);

//Build QueryInterface implementation, specifying all possible interfaces to be returned.
BEGIN_INTERFACE_MAP(Network)
Expand Down
1 change: 1 addition & 0 deletions Tests/mocks/Iarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,7 @@ typedef enum _IARM_Bus_NMgr_WiFi_EventId_t {
#define IARM_BUS_NETSRVMGR_API_stopConnectivityMonitoring "stopConnectivityMonitoring"
#define IARM_BUS_NETSRVMGR_API_isAvailable "isAvailable"
#define IARM_BUS_NETSRVMGR_API_getPublicIP "getPublicIP"
#define IARM_BUS_NETSRVMGR_API_configurePNI "configurePNI"

// TODO: remove this
#define registerMethod(...) for (uint8_t i = 1; GetHandler(i); i++) GetHandler(i)->Register<JsonObject, JsonObject>(__VA_ARGS__)
Expand Down
Loading

0 comments on commit 5c2cd34

Please sign in to comment.