Skip to content

Commit

Permalink
Added test for rmw_get_serialized_message_size (#142)
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <ahcorde@gmail.com>
  • Loading branch information
ahcorde committed Oct 8, 2020
1 parent fc3347f commit ad33403
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test_rmw_implementation/test/test_serialize_deserialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,11 @@ TEST_F(CLASSNAME(TestSerializeDeserialize, RMW_IMPLEMENTATION), clean_round_trip
EXPECT_EQ(RMW_RET_OK, rmw_serialized_message_fini(&serialized_message)) <<
rmw_get_error_string().str;
}

TEST_F(CLASSNAME(TestSerializeDeserialize, RMW_IMPLEMENTATION), rmw_get_serialized_message_size)
{
if (rmw_get_serialized_message_size(nullptr, nullptr, nullptr) != RMW_RET_UNSUPPORTED) {
// TODO(anyone): Add tests here when the implementation it's supported
GTEST_SKIP();
}
}

0 comments on commit ad33403

Please sign in to comment.