Skip to content

Commit

Permalink
test cases added to legacy_wifiy
Browse files Browse the repository at this point in the history
  • Loading branch information
parvathika committed Dec 19, 2024
1 parent 14d9d27 commit 1c88b54
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tests/unit_test/test_LegacyPlugin_WiFiManagerAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,15 @@ TEST_F(WiFiManagerInitializedTest, stopScan)
EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("stopScan"), _T("{}"), response));
EXPECT_EQ(response, string(""));
}

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

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

0 comments on commit 1c88b54

Please sign in to comment.