Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
bmagyar committed Jun 20, 2023
1 parent 577089a commit 504a8ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
2 changes: 1 addition & 1 deletion hardware_interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion hardware_interface/include/hardware_interface/system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class System final
{
public:
System() = default;

HARDWARE_INTERFACE_PUBLIC
explicit System(std::unique_ptr<SystemInterface> impl);

Expand Down
23 changes: 6 additions & 17 deletions hardware_interface/test/test_inst_hardwares.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,21 @@

#include <gmock/gmock.h>

#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
{
protected:
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; }

0 comments on commit 504a8ae

Please sign in to comment.