From 504a8ae0889d7dcf8b7876cb7021820bbeb6f830 Mon Sep 17 00:00:00 2001 From: Bence Magyar Date: Tue, 20 Jun 2023 21:51:45 +0100 Subject: [PATCH] reformat --- hardware_interface/CMakeLists.txt | 2 +- .../include/hardware_interface/system.hpp | 2 +- .../test/test_inst_hardwares.cpp | 23 +++++-------------- 3 files changed, 8 insertions(+), 19 deletions(-) diff --git a/hardware_interface/CMakeLists.txt b/hardware_interface/CMakeLists.txt index da877e6510..2d6c72ffae 100644 --- a/hardware_interface/CMakeLists.txt +++ b/hardware_interface/CMakeLists.txt @@ -83,7 +83,7 @@ if(BUILD_TESTING) ament_add_gmock(test_inst_hardwares test/test_inst_hardwares.cpp) target_link_libraries(test_inst_hardwares hardware_interface) ament_target_dependencies(test_inst_hardwares rcpputils) - + ament_add_gmock(test_joint_handle test/test_handle.cpp) target_link_libraries(test_joint_handle hardware_interface) ament_target_dependencies(test_joint_handle rcpputils) diff --git a/hardware_interface/include/hardware_interface/system.hpp b/hardware_interface/include/hardware_interface/system.hpp index 4a35dfbdd8..ece14f814d 100644 --- a/hardware_interface/include/hardware_interface/system.hpp +++ b/hardware_interface/include/hardware_interface/system.hpp @@ -36,7 +36,7 @@ class System final { public: System() = default; - + HARDWARE_INTERFACE_PUBLIC explicit System(std::unique_ptr impl); diff --git a/hardware_interface/test/test_inst_hardwares.cpp b/hardware_interface/test/test_inst_hardwares.cpp index c54a10db4f..ddd3aea0ad 100644 --- a/hardware_interface/test/test_inst_hardwares.cpp +++ b/hardware_interface/test/test_inst_hardwares.cpp @@ -14,12 +14,12 @@ #include -#include "hardware_interface/actuator_interface.hpp" #include "hardware_interface/actuator.hpp" -#include "hardware_interface/sensor_interface.hpp" +#include "hardware_interface/actuator_interface.hpp" #include "hardware_interface/sensor.hpp" -#include "hardware_interface/system_interface.hpp" +#include "hardware_interface/sensor_interface.hpp" #include "hardware_interface/system.hpp" +#include "hardware_interface/system_interface.hpp" class TestInstantiationHardwares : public ::testing::Test { @@ -27,19 +27,8 @@ class TestInstantiationHardwares : public ::testing::Test static void SetUpTestCase() {} }; -TEST_F(TestInstantiationHardwares,build_actuator) -{ - hardware_interface::Actuator anActuator; -} +TEST_F(TestInstantiationHardwares, build_actuator) { hardware_interface::Actuator anActuator; } -TEST_F(TestInstantiationHardwares,build_sensor) -{ - hardware_interface::Sensor aSensor; -} - -TEST_F(TestInstantiationHardwares,build_system) -{ - hardware_interface::System aSystem; -} +TEST_F(TestInstantiationHardwares, build_sensor) { hardware_interface::Sensor aSensor; } - +TEST_F(TestInstantiationHardwares, build_system) { hardware_interface::System aSystem; }