10 #include <gtest/gtest.h> 14 #include "../../../include/mm_radio/radio.hpp" 15 #include "../../../include/mm_radio/publisher.hpp" 16 #include "../../../include/mm_radio/subscriber.hpp" 46 Foo old_timer_foo, old_man_foo;
47 const std::string inproc_address =
"inproc://radio";
54 ecl::MilliSleep()(200);
57 ecl::MilliSleep()(500);
58 EXPECT_EQ(std::string(
"hey old man"), old_man_foo.
foo_msg);
59 EXPECT_EQ(std::string(
"aye carumba"), old_timer_foo.
foo_msg);
63 int main(
int argc,
char **argv)
65 testing::InitGoogleTest(&argc,argv);
66 return RUN_ALL_TESTS();
void publish(const unsigned int &id, const T &msg)
MM_REGISTER_PACKET_INFO(TestPubSub, std::string,"Foo")
void foo_cb(std::string msg)
static void startClient(const std::string &name, const std::string &url, const mm_messages::Verbosity::Level &verbosity=mm_messages::Verbosity::QUIET)
Pre-establish named connections for a client.
static void startServer(const std::string &name, const std::string &url, const mm_messages::Verbosity::Level &verbosity=mm_messages::Verbosity::QUIET)
Pre-establish named connections for a server.
int main(int argc, char **argv)