30 #include <gtest/gtest.h> 34 #include <test_roscpp/TestWithHeader.h> 36 void callback(
const test_roscpp::TestWithHeaderConstPtr&)
41 TEST(TopicStatistics, empty_timestamp_crash_check)
52 test_roscpp::TestWithHeader msg;
53 msg.header.frame_id =
"foo";
64 int main(
int argc,
char **argv)
66 testing::InitGoogleTest(&argc, argv);
68 ros::init(argc, argv,
"stamped_topic_statistics_empty_timestamp");
70 return RUN_ALL_TESTS();
void publish(const boost::shared_ptr< M > &message) const
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
TEST(TopicStatistics, empty_timestamp_crash_check)
void callback(const test_roscpp::TestWithHeaderConstPtr &)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
ROSCPP_DECL void spinOnce()