34 #include <gtest/gtest.h>
39 #include "test_roscpp/TestEmpty.h"
40 #include "test_roscpp/TestArray.h"
42 #include <std_srvs/Empty.h>
52 namespace message_traits
58 static const char*
value() {
return "*"; }
65 static const char*
value() {
return "*"; }
76 namespace serialization
81 template<
typename Stream,
typename T>
107 TEST(SubscribeStar, simpleSubFirstIntra)
120 EXPECT_EQ(h.
count, 1U);
123 TEST(SubscribeStar, simplePubFirstIntra)
131 EXPECT_EQ(sub.getNumPublishers(), 1U);
136 EXPECT_EQ(h.
count, 1U);
144 TEST(SubscribeStar, multipleSubsStarFirstIntra)
157 pub = nh.
advertise<test_roscpp::TestArray>(
"test_star_intra", 0);
163 TEST(SubscribeStar, multipleSubsConcreteFirstIntra)
176 pub = nh.
advertise<test_roscpp::TestArray>(
"test_star_intra", 0);
182 TEST(SubscribeStar, multipleShutdownConcreteIntra)
195 pub = nh.
advertise<test_roscpp::TestArray>(
"test_star_intra", 0);
200 TEST(SubscribeStar, simpleInter)
210 EXPECT_GT(h.
count, 0U);
213 TEST(SubscribeStar, simpleInterUDP)
223 EXPECT_GT(h.
count, 0U);
227 TEST(SubscribeStar, switchTypeInter)
276 int main(
int argc,
char** argv)
278 testing::InitGoogleTest(&argc, argv);
281 return RUN_ALL_TESTS();