From e365d62adbecf9455fbc87ae0de982427d0de7c7 Mon Sep 17 00:00:00 2001 From: Vismalskumar0 Date: Thu, 18 Dec 2025 02:20:54 +0530 Subject: [PATCH 01/10] Add AccountID validation unit tests for RDKEMW-11615 - Add test cases for empty AccountID rejection - Add test cases for Unknown AccountID replacement - Add test cases for valid AccountID acceptance - Add case-insensitive comparison tests - Add config value change detection tests --- test/rfcTest.cpp | 86 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/test/rfcTest.cpp b/test/rfcTest.cpp index 24add97e..9077eeb0 100644 --- a/test/rfcTest.cpp +++ b/test/rfcTest.cpp @@ -18,15 +18,101 @@ */ #include "gtest/gtest.h" +#include +#include int add(int num1,int num2) { return (num1+num2); } +// StringCaseCompare function for AccountID validation +bool StringCaseCompare(const std::string& str1, const std::string& str2) +{ + return (strcasecmp(str1.c_str(), str2.c_str()) == 0); +} + TEST(Add, PositiveCase) { EXPECT_EQ(30,add(10,20)); EXPECT_EQ(50,add(30,20)); } +// RDKEMW-11615: AccountID Validation Tests +class AccountIDValidationTest : public ::testing::Test { +protected: + std::string currentAccountID; + std::string unknownStr; + + void SetUp() override { + currentAccountID = "3064488088886635972"; + unknownStr = "Unknown"; + } +}; + +// Test case: Empty AccountID should be rejected +TEST_F(AccountIDValidationTest, EmptyAccountIDRejected) +{ + std::string emptyValue = ""; + EXPECT_TRUE(emptyValue.empty()); +} + +// Test case: Unknown AccountID should be replaced with current value +TEST_F(AccountIDValidationTest, UnknownAccountIDReplaced) +{ + std::string receivedAccountID = "Unknown"; + std::string replacementAccountID = currentAccountID; + + // Check if received value is "Unknown" + bool isUnknown = StringCaseCompare(receivedAccountID, unknownStr); + EXPECT_TRUE(isUnknown); + + // When unknown, should use current value + if (isUnknown) { + receivedAccountID = replacementAccountID; + } + + EXPECT_EQ(receivedAccountID, "3064488088886635972"); +} + +// Test case: Valid AccountID should be accepted +TEST_F(AccountIDValidationTest, ValidAccountIDAccepted) +{ + std::string validAccountID = "3064488088886635972"; + std::string currentValue = "OldAccountID"; + + // Check if it's not empty and not "Unknown" + bool isValid = (!validAccountID.empty() && !StringCaseCompare(validAccountID, unknownStr)); + EXPECT_TRUE(isValid); +} + +// Test case: AccountID comparison should be case-insensitive +TEST_F(AccountIDValidationTest, UnknownCaseInsensitiveComparison) +{ + std::string unknownUpper = "UNKNOWN"; + std::string unknownMixed = "UnKnOwN"; + + EXPECT_TRUE(StringCaseCompare(unknownUpper, unknownStr)); + EXPECT_TRUE(StringCaseCompare(unknownMixed, unknownStr)); +} + +// Test case: Config value change detection +TEST_F(AccountIDValidationTest, ConfigValueChangeDetection) +{ + std::string currentValue = "OldAccountID"; + std::string newValue = "3064488088886635972"; + + bool valueChanged = (currentValue != newValue); + EXPECT_TRUE(valueChanged); +} + +// Test case: No change when current and new values are same +TEST_F(AccountIDValidationTest, NoConfigValueChangeWhenSame) +{ + std::string currentValue = "3064488088886635972"; + std::string newValue = "3064488088886635972"; + + bool valueChanged = (currentValue != newValue); + EXPECT_FALSE(valueChanged); +} + From 599e81fbf52d3ce2be755571e78706e2a12de0c5 Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Thu, 18 Dec 2025 12:24:42 +0530 Subject: [PATCH 02/10] Refactor comments in AccountIDValidationTest --- test/rfcTest.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/rfcTest.cpp b/test/rfcTest.cpp index 9077eeb0..521fddf9 100644 --- a/test/rfcTest.cpp +++ b/test/rfcTest.cpp @@ -38,7 +38,7 @@ TEST(Add, PositiveCase) EXPECT_EQ(50,add(30,20)); } -// RDKEMW-11615: AccountID Validation Tests +// AccountID Validation Tests class AccountIDValidationTest : public ::testing::Test { protected: std::string currentAccountID; @@ -50,14 +50,14 @@ class AccountIDValidationTest : public ::testing::Test { } }; -// Test case: Empty AccountID should be rejected + TEST_F(AccountIDValidationTest, EmptyAccountIDRejected) { std::string emptyValue = ""; EXPECT_TRUE(emptyValue.empty()); } -// Test case: Unknown AccountID should be replaced with current value + TEST_F(AccountIDValidationTest, UnknownAccountIDReplaced) { std::string receivedAccountID = "Unknown"; @@ -75,7 +75,6 @@ TEST_F(AccountIDValidationTest, UnknownAccountIDReplaced) EXPECT_EQ(receivedAccountID, "3064488088886635972"); } -// Test case: Valid AccountID should be accepted TEST_F(AccountIDValidationTest, ValidAccountIDAccepted) { std::string validAccountID = "3064488088886635972"; @@ -86,7 +85,7 @@ TEST_F(AccountIDValidationTest, ValidAccountIDAccepted) EXPECT_TRUE(isValid); } -// Test case: AccountID comparison should be case-insensitive + TEST_F(AccountIDValidationTest, UnknownCaseInsensitiveComparison) { std::string unknownUpper = "UNKNOWN"; @@ -96,7 +95,7 @@ TEST_F(AccountIDValidationTest, UnknownCaseInsensitiveComparison) EXPECT_TRUE(StringCaseCompare(unknownMixed, unknownStr)); } -// Test case: Config value change detection + TEST_F(AccountIDValidationTest, ConfigValueChangeDetection) { std::string currentValue = "OldAccountID"; @@ -106,7 +105,6 @@ TEST_F(AccountIDValidationTest, ConfigValueChangeDetection) EXPECT_TRUE(valueChanged); } -// Test case: No change when current and new values are same TEST_F(AccountIDValidationTest, NoConfigValueChangeWhenSame) { std::string currentValue = "3064488088886635972"; From a00c0c49ec9339958c8184fba23f5f699419d293 Mon Sep 17 00:00:00 2001 From: Vismalskumar0 Date: Thu, 18 Dec 2025 12:31:24 +0530 Subject: [PATCH 03/10] Add AccountID validation unit tests to gtest folder for RDKEMW-11615 --- rfcMgr/gtest/gtest_main.cpp | 78 +++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/rfcMgr/gtest/gtest_main.cpp b/rfcMgr/gtest/gtest_main.cpp index 11cbf3ae..0a43f48c 100644 --- a/rfcMgr/gtest/gtest_main.cpp +++ b/rfcMgr/gtest/gtest_main.cpp @@ -1335,6 +1335,84 @@ TEST(rfcMgrTest, EmptyFeatures) { } } +// RDKEMW-11615: AccountID Validation Tests +class AccountIDValidationTest : public ::testing::Test { +protected: + std::string currentAccountID; + std::string unknownStr; + + void SetUp() override { + currentAccountID = "3064488088886635972"; + unknownStr = "Unknown"; + } +}; + +// Test case: Empty AccountID should be rejected +TEST_F(AccountIDValidationTest, EmptyAccountIDRejected) +{ + std::string emptyValue = ""; + EXPECT_TRUE(emptyValue.empty()); +} + +// Test case: Unknown AccountID should be replaced with current value +TEST_F(AccountIDValidationTest, UnknownAccountIDReplaced) +{ + std::string receivedAccountID = "Unknown"; + std::string replacementAccountID = currentAccountID; + + // Check if received value is "Unknown" + bool isUnknown = StringCaseCompare(receivedAccountID, unknownStr); + EXPECT_TRUE(isUnknown); + + // When unknown, should use current value + if (isUnknown) { + receivedAccountID = replacementAccountID; + } + + EXPECT_EQ(receivedAccountID, "3064488088886635972"); +} + +// Test case: Valid AccountID should be accepted +TEST_F(AccountIDValidationTest, ValidAccountIDAccepted) +{ + std::string validAccountID = "3064488088886635972"; + std::string currentValue = "OldAccountID"; + + // Check if it's not empty and not "Unknown" + bool isValid = (!validAccountID.empty() && !StringCaseCompare(validAccountID, unknownStr)); + EXPECT_TRUE(isValid); +} + +// Test case: AccountID comparison should be case-insensitive +TEST_F(AccountIDValidationTest, UnknownCaseInsensitiveComparison) +{ + std::string unknownUpper = "UNKNOWN"; + std::string unknownMixed = "UnKnOwN"; + + EXPECT_TRUE(StringCaseCompare(unknownUpper, unknownStr)); + EXPECT_TRUE(StringCaseCompare(unknownMixed, unknownStr)); +} + +// Test case: Config value change detection +TEST_F(AccountIDValidationTest, ConfigValueChangeDetection) +{ + std::string currentValue = "OldAccountID"; + std::string newValue = "3064488088886635972"; + + bool valueChanged = (currentValue != newValue); + EXPECT_TRUE(valueChanged); +} + +// Test case: No change when current and new values are same +TEST_F(AccountIDValidationTest, NoConfigValueChangeWhenSame) +{ + std::string currentValue = "3064488088886635972"; + std::string newValue = "3064488088886635972"; + + bool valueChanged = (currentValue != newValue); + EXPECT_FALSE(valueChanged); +} + GTEST_API_ int main(int argc, char *argv[]){ ::testing::InitGoogleTest(&argc, argv); From 8323fcebfcf2157b01ed5e467d04dfe13e556dde Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Thu, 18 Dec 2025 12:34:28 +0530 Subject: [PATCH 04/10] Update gtest_main.cpp --- rfcMgr/gtest/gtest_main.cpp | 80 +++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/rfcMgr/gtest/gtest_main.cpp b/rfcMgr/gtest/gtest_main.cpp index 11cbf3ae..c338ef67 100644 --- a/rfcMgr/gtest/gtest_main.cpp +++ b/rfcMgr/gtest/gtest_main.cpp @@ -1335,6 +1335,86 @@ TEST(rfcMgrTest, EmptyFeatures) { } } +class AccountIDValidationTest : public ::testing::Test { +protected: + std::string currentAccountID; + std::string unknownStr; + + void SetUp() override { + currentAccountID = "3064488088886635972"; + unknownStr = "Unknown"; + } +}; + +// Test case: Empty AccountID should be rejected +TEST_F(AccountIDValidationTest, EmptyAccountIDRejected) +{ + std::string emptyValue = ""; + EXPECT_TRUE(emptyValue.empty()); +} + +// Test case: Unknown AccountID should be replaced with current value +TEST_F(AccountIDValidationTest, UnknownAccountIDReplaced) +{ + std::string receivedAccountID = "Unknown"; + std::string replacementAccountID = currentAccountID; + + // Check if received value is "Unknown" + bool isUnknown = StringCaseCompare(receivedAccountID, unknownStr); + EXPECT_TRUE(isUnknown); + + // When unknown, should use current value + if (isUnknown) { + receivedAccountID = replacementAccountID; + } + + EXPECT_EQ(receivedAccountID, "3064488088886635972"); +} + +// Test case: Valid AccountID should be accepted +TEST_F(AccountIDValidationTest, ValidAccountIDAccepted) +{ + std::string validAccountID = "3064488088886635972"; + std::string currentValue = "OldAccountID"; + + // Check if it's not empty and not "Unknown" + bool isValid = (!validAccountID.empty() && !StringCaseCompare(validAccountID, unknownStr)); + EXPECT_TRUE(isValid); +} + +// Test case: AccountID comparison should be case-insensitive +TEST_F(AccountIDValidationTest, UnknownCaseInsensitiveComparison) +{ + std::string unknownUpper = "UNKNOWN"; + std::string unknownMixed = "UnKnOwN"; + + EXPECT_TRUE(StringCaseCompare(unknownUpper, unknownStr)); + EXPECT_TRUE(StringCaseCompare(unknownMixed, unknownStr)); +} + +// Test case: Config value change detection +TEST_F(AccountIDValidationTest, ConfigValueChangeDetection) +{ + std::string currentValue = "OldAccountID"; + std::string newValue = "3064488088886635972"; + + bool valueChanged = (currentValue != newValue); + EXPECT_TRUE(valueChanged); +} + +// Test case: No change when current and new values are same +TEST_F(AccountIDValidationTest, NoConfigValueChangeWhenSame) +{ + std::string currentValue = "3064488088886635972"; + std::string newValue = "3064488088886635972"; + + bool valueChanged = (currentValue != newValue); + EXPECT_FALSE(valueChanged); +} + + + + GTEST_API_ int main(int argc, char *argv[]){ ::testing::InitGoogleTest(&argc, argv); From 4d18068b12cd6b4dd8b22cc1f9a819eaf91181ee Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Thu, 18 Dec 2025 13:03:51 +0530 Subject: [PATCH 05/10] Update gtest_main.cpp --- rfcMgr/gtest/gtest_main.cpp | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/rfcMgr/gtest/gtest_main.cpp b/rfcMgr/gtest/gtest_main.cpp index c338ef67..7f005b22 100644 --- a/rfcMgr/gtest/gtest_main.cpp +++ b/rfcMgr/gtest/gtest_main.cpp @@ -1412,6 +1412,51 @@ TEST_F(AccountIDValidationTest, NoConfigValueChangeWhenSame) EXPECT_FALSE(valueChanged); } +TEST(rfcMgrTest, GetAccountID_ValidValue) { + writeToTr181storeFile("Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AccountInfo.AccountID", "3064488088886635972", "/opt/secure/RFC/tr181store.ini", Quoted); + RuntimeFeatureControlProcessor *rfcObj = new RuntimeFeatureControlProcessor(); + rfcObj->GetAccountID(); + EXPECT_EQ(rfcObj->_accountId, "3064488088886635972"); + EXPECT_FALSE(StringCaseCompare(rfcObj->_accountId, "Unknown")); + delete rfcObj; +} + +TEST(rfcMgrTest, GetAccountID_UnknownValue) { + writeToTr181storeFile("Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AccountInfo.AccountID", "Unknown", "/opt/secure/RFC/tr181store.ini", Quoted); + RuntimeFeatureControlProcessor *rfcObj = new RuntimeFeatureControlProcessor(); + rfcObj->GetAccountID(); + EXPECT_TRUE(StringCaseCompare(rfcObj->_accountId, "Unknown")); + delete rfcObj; +} + +TEST(rfcMgrTest, GetAccountID_EmptyValue) { + writeToTr181storeFile("Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AccountInfo.AccountID", "", "/opt/secure/RFC/tr181store.ini", Quoted); + RuntimeFeatureControlProcessor *rfcObj = new RuntimeFeatureControlProcessor(); + rfcObj->GetAccountID(); + EXPECT_TRUE(rfcObj->_accountId.empty()); + delete rfcObj; +} + +TEST(rfcMgrTest, GetValidAccountId_ReplacesUnknown) { + RuntimeFeatureControlProcessor *rfcObj = new RuntimeFeatureControlProcessor(); + rfcObj->_accountId = "4123705941507160513"; + rfcObj->_RFCKeyAndValueMap[RFC_ACCOUNT_ID_KEY_STR] = "Unknown"; + rfcObj->GetValidAccountId(); + // Should use the stored valid account ID instead of "Unknown" + EXPECT_EQ(rfcObj->_valid_accountId, "4123705941507160513"); + delete rfcObj; +} + +TEST(rfcMgrTest, GetValidAccountId_RejectsEmpty) { + RuntimeFeatureControlProcessor *rfcObj = new RuntimeFeatureControlProcessor(); + rfcObj->_accountId = "4123705941507160513"; + rfcObj->_RFCKeyAndValueMap[RFC_ACCOUNT_ID_KEY_STR] = ""; + rfcObj->GetValidAccountId(); + // Should use the stored valid account ID instead of empty string + EXPECT_EQ(rfcObj->_valid_accountId, "4123705941507160513"); + delete rfcObj; +} + From 7057c3e35b1cde9303651d1d9413c76b7cebe8a0 Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Thu, 18 Dec 2025 14:01:09 +0530 Subject: [PATCH 06/10] Update rfc_xconf_handler.h --- rfcMgr/rfc_xconf_handler.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rfcMgr/rfc_xconf_handler.h b/rfcMgr/rfc_xconf_handler.h index b2fa4aa0..4f568a8c 100644 --- a/rfcMgr/rfc_xconf_handler.h +++ b/rfcMgr/rfc_xconf_handler.h @@ -291,6 +291,11 @@ class RuntimeFeatureControlProcessor : public xconf::XconfHandler FRIEND_TEST(rfcMgrTest, ValidPartnerId); FRIEND_TEST(rfcMgrTest, Removed_PERSISTENCE_FILE); FRIEND_TEST(rfcMgrTest, EmptyFeatures); + FRIEND_TEST(rfcMgrTest, GetAccountID_ValidValue); + FRIEND_TEST(rfcMgrTest, GetAccountID_UnknownValue); + FRIEND_TEST(rfcMgrTest, GetAccountID_EmptyValue); + FRIEND_TEST(rfcMgrTest, GetValidAccountId_ReplacesUnknown); + FRIEND_TEST(rfcMgrTest, GetValidAccountId_RejectsEmpty); #endif }; From 0203e126d740a10150cf060ee6257289c572d3f6 Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Thu, 18 Dec 2025 18:22:14 +0530 Subject: [PATCH 07/10] Update rfcTest.cpp --- test/rfcTest.cpp | 75 +----------------------------------------------- 1 file changed, 1 insertion(+), 74 deletions(-) diff --git a/test/rfcTest.cpp b/test/rfcTest.cpp index 521fddf9..9ec6910e 100644 --- a/test/rfcTest.cpp +++ b/test/rfcTest.cpp @@ -19,7 +19,7 @@ #include "gtest/gtest.h" #include -#include + int add(int num1,int num2) { @@ -38,79 +38,6 @@ TEST(Add, PositiveCase) EXPECT_EQ(50,add(30,20)); } -// AccountID Validation Tests -class AccountIDValidationTest : public ::testing::Test { -protected: - std::string currentAccountID; - std::string unknownStr; - - void SetUp() override { - currentAccountID = "3064488088886635972"; - unknownStr = "Unknown"; - } -}; - - -TEST_F(AccountIDValidationTest, EmptyAccountIDRejected) -{ - std::string emptyValue = ""; - EXPECT_TRUE(emptyValue.empty()); -} - -TEST_F(AccountIDValidationTest, UnknownAccountIDReplaced) -{ - std::string receivedAccountID = "Unknown"; - std::string replacementAccountID = currentAccountID; - - // Check if received value is "Unknown" - bool isUnknown = StringCaseCompare(receivedAccountID, unknownStr); - EXPECT_TRUE(isUnknown); - - // When unknown, should use current value - if (isUnknown) { - receivedAccountID = replacementAccountID; - } - - EXPECT_EQ(receivedAccountID, "3064488088886635972"); -} - -TEST_F(AccountIDValidationTest, ValidAccountIDAccepted) -{ - std::string validAccountID = "3064488088886635972"; - std::string currentValue = "OldAccountID"; - - // Check if it's not empty and not "Unknown" - bool isValid = (!validAccountID.empty() && !StringCaseCompare(validAccountID, unknownStr)); - EXPECT_TRUE(isValid); -} -TEST_F(AccountIDValidationTest, UnknownCaseInsensitiveComparison) -{ - std::string unknownUpper = "UNKNOWN"; - std::string unknownMixed = "UnKnOwN"; - - EXPECT_TRUE(StringCaseCompare(unknownUpper, unknownStr)); - EXPECT_TRUE(StringCaseCompare(unknownMixed, unknownStr)); -} - - -TEST_F(AccountIDValidationTest, ConfigValueChangeDetection) -{ - std::string currentValue = "OldAccountID"; - std::string newValue = "3064488088886635972"; - - bool valueChanged = (currentValue != newValue); - EXPECT_TRUE(valueChanged); -} - -TEST_F(AccountIDValidationTest, NoConfigValueChangeWhenSame) -{ - std::string currentValue = "3064488088886635972"; - std::string newValue = "3064488088886635972"; - - bool valueChanged = (currentValue != newValue); - EXPECT_FALSE(valueChanged); -} - From 0339fe21eb34c49c833a7ac8d10c2de6d3d70f0b Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Thu, 18 Dec 2025 18:25:02 +0530 Subject: [PATCH 08/10] Update gtest_main.cpp --- rfcMgr/gtest/gtest_main.cpp | 38 ++----------------------------------- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/rfcMgr/gtest/gtest_main.cpp b/rfcMgr/gtest/gtest_main.cpp index 7f005b22..cf05d549 100644 --- a/rfcMgr/gtest/gtest_main.cpp +++ b/rfcMgr/gtest/gtest_main.cpp @@ -1346,43 +1346,9 @@ class AccountIDValidationTest : public ::testing::Test { } }; -// Test case: Empty AccountID should be rejected -TEST_F(AccountIDValidationTest, EmptyAccountIDRejected) -{ - std::string emptyValue = ""; - EXPECT_TRUE(emptyValue.empty()); -} -// Test case: Unknown AccountID should be replaced with current value -TEST_F(AccountIDValidationTest, UnknownAccountIDReplaced) -{ - std::string receivedAccountID = "Unknown"; - std::string replacementAccountID = currentAccountID; - - // Check if received value is "Unknown" - bool isUnknown = StringCaseCompare(receivedAccountID, unknownStr); - EXPECT_TRUE(isUnknown); - - // When unknown, should use current value - if (isUnknown) { - receivedAccountID = replacementAccountID; - } - - EXPECT_EQ(receivedAccountID, "3064488088886635972"); -} -// Test case: Valid AccountID should be accepted -TEST_F(AccountIDValidationTest, ValidAccountIDAccepted) -{ - std::string validAccountID = "3064488088886635972"; - std::string currentValue = "OldAccountID"; - - // Check if it's not empty and not "Unknown" - bool isValid = (!validAccountID.empty() && !StringCaseCompare(validAccountID, unknownStr)); - EXPECT_TRUE(isValid); -} -// Test case: AccountID comparison should be case-insensitive TEST_F(AccountIDValidationTest, UnknownCaseInsensitiveComparison) { std::string unknownUpper = "UNKNOWN"; @@ -1392,7 +1358,7 @@ TEST_F(AccountIDValidationTest, UnknownCaseInsensitiveComparison) EXPECT_TRUE(StringCaseCompare(unknownMixed, unknownStr)); } -// Test case: Config value change detection + TEST_F(AccountIDValidationTest, ConfigValueChangeDetection) { std::string currentValue = "OldAccountID"; @@ -1402,7 +1368,7 @@ TEST_F(AccountIDValidationTest, ConfigValueChangeDetection) EXPECT_TRUE(valueChanged); } -// Test case: No change when current and new values are same + TEST_F(AccountIDValidationTest, NoConfigValueChangeWhenSame) { std::string currentValue = "3064488088886635972"; From 661848ed0d505cbec8b263babdf4a465a00e6e15 Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Thu, 18 Dec 2025 18:25:46 +0530 Subject: [PATCH 09/10] Update rfcTest.cpp --- test/rfcTest.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/rfcTest.cpp b/test/rfcTest.cpp index 9ec6910e..6e3048c3 100644 --- a/test/rfcTest.cpp +++ b/test/rfcTest.cpp @@ -18,7 +18,7 @@ */ #include "gtest/gtest.h" -#include + int add(int num1,int num2) @@ -26,11 +26,7 @@ int add(int num1,int num2) return (num1+num2); } -// StringCaseCompare function for AccountID validation -bool StringCaseCompare(const std::string& str1, const std::string& str2) -{ - return (strcasecmp(str1.c_str(), str2.c_str()) == 0); -} + TEST(Add, PositiveCase) { From fed4c065093701efd5c93f74af51a74c6f045e8a Mon Sep 17 00:00:00 2001 From: Vismalskumar0 Date: Wed, 14 Jan 2026 13:43:23 +0530 Subject: [PATCH 10/10] hi --- rfcMgr/xconf_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfcMgr/xconf_handler.h b/rfcMgr/xconf_handler.h index f7e52ac2..7589c0da 100644 --- a/rfcMgr/xconf_handler.h +++ b/rfcMgr/xconf_handler.h @@ -36,7 +36,7 @@ extern "C" { namespace xconf { class XconfHandler { public : - XconfHandler(){ } + XconfHandler() : _ebuild_type(eUNKNOWN) { } int initializeXconfHandler(void); // We do not allow this class to be copied !!