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 22, 2024
1 parent 5d5e5d6 commit 588af67
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/core_tests/SenderAPITest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,19 @@ TEST(SenderIsConnected, ReturnsFalseIfNotConnectedEver)
sender::DeleteCamera(handle);
}

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

auto fb = sc::FrameBuffer::open();
ASSERT_TRUE( fb );

bool ret = sender::IsConnected(handle);

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

// TODO: tests for IsConnected

} //namespace SenderAPITest

0 comments on commit 588af67

Please sign in to comment.