Skip to content

Commit

Permalink
add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
parvathika committed Dec 19, 2024
1 parent 3a57e58 commit 4fe9e6b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Tests/unit_test/test_LegacyPlugin_WiFiManagerAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4fe9e6b

Please sign in to comment.