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 6dfc60e commit c39f099
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Tests/unit_test/test_LegacyPlugin_WiFiManagerAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,32 @@ TEST_F(WiFiManagerInitializedTest, disconnect)
EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("disconnect"), _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, getPairedSSID)
{
EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("getPairedSSID"), _T("{}"), response));
EXPECT_EQ(response, string(""));
}

TEST_F(WiFiManagerInitializedTest, getPairedSSIDInfo)
{
EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("getPairedSSIDInfo"), _T("{}"), response));
EXPECT_EQ(response, string(""));
}
TEST_F(WiFiManagerInitializedTest, getCurrentState)
{
EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("getCurrentState"), _T("{}"), response));
EXPECT_EQ(response, string(""));
}
TEST_F(WiFiManagerInitializedTest, getConnectedSSID)
{
EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("getConnectedSSID"), _T("{}"), response));
EXPECT_EQ(response, string(""));
}


0 comments on commit c39f099

Please sign in to comment.