Skip to content

Commit

Permalink
WIP - coregap
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed May 21, 2024
1 parent 2aa79bb commit 4fdb9d9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libs/BLEKit/tests/CoreGap_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,14 @@ TEST_F(CoreGapTest, isConnectedDefault)

EXPECT_FALSE(is_connected);
}

TEST_F(CoreGapTest, isConnectedAfterConnection)
{
auto dummy_on_connection_callback = std::function<void()> {};

coregap.onConnectionCallback(dummy_on_connection_callback);

auto is_connected = coregap.isConnected();

EXPECT_TRUE(is_connected);
}

0 comments on commit 4fdb9d9

Please sign in to comment.