Skip to content

Commit

Permalink
Check for NULL UUIDs match
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed May 8, 2024
1 parent 48b5ef9 commit 3f9c300
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ble/tests/TestBleUUID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ using namespace chip::Ble;

namespace {

TEST(TestBleUUID, CheckUUIDsMatch_NULL)
{
// Test that NULL pointer UUIDs are not equal
EXPECT_FALSE(UUIDsMatch(nullptr, nullptr));
}

TEST(TestBleUUID, CheckStringToUUID_ChipUUID)
{
// Test positive scenario - CHIP Service UUID
Expand Down

0 comments on commit 3f9c300

Please sign in to comment.