Skip to content

Commit

Permalink
Add note about why an empty buffer is not checked for value
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-ancell committed Dec 16, 2024
1 parent 15fad12 commit 449b6e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/platform/linux/fl_binary_messenger_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ TEST(FlBinaryMessengerTest, SendNullptr) {
called = true;

EXPECT_STREQ(message->channel, "test");
// Note we don't check message->message as it could be nullptr or a
// pointer to an buffer - either way it wouldn't be accessed.
EXPECT_EQ(message->message_size, static_cast<size_t>(0));

return kSuccess;
Expand Down

0 comments on commit 449b6e7

Please sign in to comment.