From 296d5f7be502ce974478fb27af5b3894566649a1 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Wed, 25 Jan 2023 18:26:00 +0000 Subject: [PATCH] Small fixes to fix tests. Signed-off-by: Chris Lalancette --- .../test/rosidl_typesupport_c/test_service_typesupport.cpp | 3 +-- .../test/rosidl_typesupport_cpp/test_service_typesupport.cpp | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rosidl_typesupport_tests/test/rosidl_typesupport_c/test_service_typesupport.cpp b/rosidl_typesupport_tests/test/rosidl_typesupport_c/test_service_typesupport.cpp index e41f880f..ecc1df0a 100644 --- a/rosidl_typesupport_tests/test/rosidl_typesupport_c/test_service_typesupport.cpp +++ b/rosidl_typesupport_tests/test/rosidl_typesupport_c/test_service_typesupport.cpp @@ -15,7 +15,7 @@ #include #include -#include +#include "gtest/gtest.h" #include "rcutils/allocator.h" @@ -171,7 +171,6 @@ TEST(test_service_typesupport, basic_types_event_message_create) TEST(test_service_typesupport, fibonacci_action_services_event) { - // rcutils_allocator_t allocator = rcutils_get_default_allocator(); const rosidl_message_type_support_t * send_goal_event_msg_ts = rosidl_typesupport_c__get_message_type_support_handle__rosidl_typesupport_tests__action__Fibonacci_SendGoal_Event(); // NOLINT const rosidl_message_type_support_t * get_result_event_msg_ts = diff --git a/rosidl_typesupport_tests/test/rosidl_typesupport_cpp/test_service_typesupport.cpp b/rosidl_typesupport_tests/test/rosidl_typesupport_cpp/test_service_typesupport.cpp index ba028aee..d711422e 100644 --- a/rosidl_typesupport_tests/test/rosidl_typesupport_cpp/test_service_typesupport.cpp +++ b/rosidl_typesupport_tests/test/rosidl_typesupport_cpp/test_service_typesupport.cpp @@ -12,11 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. - #include #include +#include -#include +#include "gtest/gtest.h" #include "rcutils/allocator.h" @@ -173,7 +173,6 @@ TEST(test_service_typesupport, basic_types_event_message_create) TEST(test_service_typesupport, fibonacci_action_services_event) { - // rcutils_allocator_t allocator = rcutils_get_default_allocator(); const rosidl_message_type_support_t * send_goal_event_msg_ts = rosidl_typesupport_cpp::get_message_type_support_handle< rosidl_typesupport_tests::action::Fibonacci_SendGoal::Event>();