From dd6daccfe9b475f4e4dbc9a3ba43f982ba948b9a Mon Sep 17 00:00:00 2001 From: "jack.song" Date: Tue, 17 Dec 2024 09:37:50 +0800 Subject: [PATCH] rebase commom tools Signed-off-by: jack.song --- common/autoware_component_interface_tools/CMakeLists.txt | 1 - common/autoware_component_interface_tools/package.xml | 4 ---- .../test/test_autoware_component_interface_tools.cpp | 6 ++---- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/common/autoware_component_interface_tools/CMakeLists.txt b/common/autoware_component_interface_tools/CMakeLists.txt index e953cfe062e4b..f1199b93174fd 100644 --- a/common/autoware_component_interface_tools/CMakeLists.txt +++ b/common/autoware_component_interface_tools/CMakeLists.txt @@ -13,7 +13,6 @@ rclcpp_components_register_node(${PROJECT_NAME} EXECUTABLE service_log_checker_node ) - if(BUILD_TESTING) ament_add_ros_isolated_gtest(test_${PROJECT_NAME} test/test_autoware_component_interface_tools.cpp diff --git a/common/autoware_component_interface_tools/package.xml b/common/autoware_component_interface_tools/package.xml index 8355cb27283f0..8e36a5a3618c4 100644 --- a/common/autoware_component_interface_tools/package.xml +++ b/common/autoware_component_interface_tools/package.xml @@ -29,11 +29,7 @@ diagnostic_updater autoware_testing ament_index_python - fake_test_node - ament_cmake_gtest - - ament_cmake diff --git a/common/autoware_component_interface_tools/test/test_autoware_component_interface_tools.cpp b/common/autoware_component_interface_tools/test/test_autoware_component_interface_tools.cpp index 6906a57754065..79636ae314fc0 100644 --- a/common/autoware_component_interface_tools/test/test_autoware_component_interface_tools.cpp +++ b/common/autoware_component_interface_tools/test/test_autoware_component_interface_tools.cpp @@ -20,14 +20,13 @@ #include #include #include + using ServiceLog = tier4_system_msgs::msg::ServiceLog; using DiagnosticArray = diagnostic_msgs::msg::DiagnosticArray; using ServiceLogChecker = autoware::component_interface_tools::ServiceLogChecker; -using namespace rclcpp; TEST(ServiceCheckerTest, ServiceChecker) { - class PubManager : public rclcpp::Node { public: @@ -53,7 +52,7 @@ TEST(ServiceCheckerTest, ServiceChecker) rclcpp::init(0, nullptr); auto node_options = rclcpp::NodeOptions{}; auto test_target_node = std::make_shared(node_options); - auto test_log = std::make_shared(); + auto test_log = std::make_shared(); ServiceLog log; log.type = 6; log.name = "test"; @@ -62,5 +61,4 @@ TEST(ServiceCheckerTest, ServiceChecker) while (!test_log->flag) { } - }