Skip to content

Commit

Permalink
Cleanup header includes in test_quality_of_service. (#533)
Browse files Browse the repository at this point in the history
Noticed while doing other debugging.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Dec 8, 2023
1 parent 8e2c7ef commit 9a469a2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@
#define TEST_QUALITY_OF_SERVICE__QOS_UTILITIES_HPP_

#include <chrono>
#include <future>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
#include <tuple>

#include "gtest/gtest.h"

#include "rcutils/macros.h"
#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/string.hpp"
#include "test_quality_of_service/visibility_control.hpp"

#ifdef RMW_IMPLEMENTATION
# define CLASSNAME_(NAME, SUFFIX) NAME ## __ ## SUFFIX
Expand Down
5 changes: 5 additions & 0 deletions test_quality_of_service/test/qos_test_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <chrono>
#include <sstream>
#include <string>

#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/string.hpp"

#include "test_quality_of_service/qos_test_publisher.hpp"
#include "test_quality_of_service/qos_test_node.hpp"

Expand Down
6 changes: 2 additions & 4 deletions test_quality_of_service/test/qos_test_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <mutex>
#include <functional>
#include <memory>
#include <string>

Expand All @@ -22,8 +22,6 @@
#include "test_quality_of_service/qos_test_node.hpp"
#include "test_quality_of_service/qos_test_subscriber.hpp"

using std::placeholders::_1;

QosTestSubscriber::QosTestSubscriber(
const std::string & name,
const std::string & topic,
Expand All @@ -49,7 +47,7 @@ void QosTestSubscriber::setup_start()
subscription_ = create_subscription<std_msgs::msg::String>(
topic_,
qos_options_,
std::bind(&QosTestSubscriber::listen_to_message, this, _1),
std::bind(&QosTestSubscriber::listen_to_message, this, std::placeholders::_1),
sub_options_);
}
}
Expand Down
5 changes: 4 additions & 1 deletion test_quality_of_service/test/qos_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <iostream>
#include <future>
#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <utility>

#include "rclcpp/rclcpp.hpp"

#include "test_quality_of_service/qos_test_publisher.hpp"
#include "test_quality_of_service/qos_test_subscriber.hpp"
Expand Down

0 comments on commit 9a469a2

Please sign in to comment.