diff --git a/rclcpp/test/benchmark/benchmark_client.cpp b/rclcpp/test/benchmark/benchmark_client.cpp index 4c1064632a..05608623a0 100644 --- a/rclcpp/test/benchmark/benchmark_client.cpp +++ b/rclcpp/test/benchmark/benchmark_client.cpp @@ -27,7 +27,7 @@ class ClientPerformanceTest : public PerformanceTest { public: explicit ClientPerformanceTest(rclcpp::NodeOptions = rclcpp::NodeOptions()) {} - void SetUp(::benchmark::State & state) + void SetUp(benchmark::State & state) { rclcpp::init(0, nullptr); node = std::make_unique("node", "ns"); @@ -42,7 +42,7 @@ class ClientPerformanceTest : public PerformanceTest performance_test_fixture::PerformanceTest::SetUp(state); } - void TearDown(::benchmark::State & state) + void TearDown(benchmark::State & state) { performance_test_fixture::PerformanceTest::TearDown(state); empty_service.reset(); diff --git a/rclcpp/test/benchmark/benchmark_service.cpp b/rclcpp/test/benchmark/benchmark_service.cpp index 8aed491a6e..e138f9b2ca 100644 --- a/rclcpp/test/benchmark/benchmark_service.cpp +++ b/rclcpp/test/benchmark/benchmark_service.cpp @@ -27,17 +27,17 @@ class ServicePerformanceTest : public PerformanceTest public: ServicePerformanceTest() : callback_count(0) {} - void SetUp(::benchmark::State & state) + void SetUp(benchmark::State & state) { rclcpp::init(0, nullptr); node = std::make_unique("node", "ns"); empty_client = node->create_client(empty_service_name); callback_count = 0; - + performance_test_fixture::PerformanceTest::SetUp(state); } - void TearDown(::benchmark::State & state) + void TearDown(benchmark::State & state) { performance_test_fixture::PerformanceTest::TearDown(state);