From 4fe9e6bdbcdcc73b27d4829f3d1bfad4c7e917e8 Mon Sep 17 00:00:00 2001 From: Parvathi Date: Thu, 19 Dec 2024 13:38:11 +0530 Subject: [PATCH] add more test cases --- .../test_LegacyPlugin_WiFiManagerAPIs.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Tests/unit_test/test_LegacyPlugin_WiFiManagerAPIs.cpp b/Tests/unit_test/test_LegacyPlugin_WiFiManagerAPIs.cpp index 92cebb1..0f0436d 100644 --- a/Tests/unit_test/test_LegacyPlugin_WiFiManagerAPIs.cpp +++ b/Tests/unit_test/test_LegacyPlugin_WiFiManagerAPIs.cpp @@ -107,11 +107,29 @@ TEST_F(WiFiManagerInitializedTest, disconnect) EXPECT_EQ(response, string("")); } +TEST_F(WiFiManagerInitializedTest, initiateWPSPairing) +{ + EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("initiateWPSPairing"), _T("{}"), response)); + EXPECT_EQ(response, string("")); +} + TEST_F(WiFiManagerInitializedTest, cancelWPSPairing) { EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("cancelWPSPairing"), _T("{}"), response)); EXPECT_EQ(response, string("")); } + +TEST_F(WiFiManagerInitializedTest, saveSSID) +{ + EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("saveSSID"), _T("{}"), response)); + EXPECT_EQ(response, string("")); +} + +TEST_F(WiFiManagerInitializedTest, clearSSID) +{ + EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("clearSSID"), _T("{}"), response)); + EXPECT_EQ(response, string("")); +} TEST_F(WiFiManagerInitializedTest, getPairedSSID) { EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("getPairedSSID"), _T("{}"), response));