32 #include <gtest/gtest.h> 35 # include <uuid/uuid.h> 42 #include <test_bond/TestBond.h> 46 const char TOPIC[] =
"test_bond_topic";
51 uuid_generate_random(uuid);
53 uuid_unparse(uuid, uuid_str);
54 return std::string(uuid_str);
59 UuidToStringA(&uuid, &str);
60 std::string return_string(reinterpret_cast<char *>(str));
66 TEST(TestCallbacksCpp, dieInLifeCallback)
68 std::string
id =
genId();
81 int main(
int argc,
char ** argv)
83 testing::InitGoogleTest(&argc, argv);
84 ros::init(argc, argv,
"test_callbacks_cpp",
true);
88 int ret = RUN_ALL_TESTS();
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
TEST(TestCallbacksCpp, dieInLifeCallback)
bool waitUntilBroken(ros::Duration timeout=ros::Duration(-1))
bool waitUntilFormed(ros::Duration timeout=ros::Duration(-1))
int main(int argc, char **argv)
void setFormedCallback(boost::function< void(void)> on_formed)