Skip to content

Commit

Permalink
Add tests for IsConnected()
Browse files Browse the repository at this point in the history
  • Loading branch information
tshino committed Jan 21, 2024
1 parent 1c49aa1 commit 5d5e5d6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/core_tests/SenderAPITest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,16 @@ TEST(SenderWaitForConnection, InvalidArgs)
EXPECT_EQ( ret, false );
}

TEST(SenderIsConnected, ReturnsFalseIfNotConnectedEver)
{
auto handle = sender::CreateCamera(320, 240);

bool ret = sender::IsConnected(handle);

EXPECT_EQ( ret, false );
sender::DeleteCamera(handle);
}

// TODO: tests for IsConnected

} //namespace SenderAPITest

0 comments on commit 5d5e5d6

Please sign in to comment.