38 #include <gtest/gtest.h> 42 #include <test_roscpp/TestStringString.h> 46 test_roscpp::TestStringString::Request req;
47 test_roscpp::TestStringString::Response res;
53 while(!nh.
getParam(
"advertisers_ready", param))
56 ASSERT_TRUE(call_result);
58 ASSERT_STREQ(res.str.c_str(),
"B");
62 main(
int argc,
char** argv)
64 testing::InitGoogleTest(&argc, argv);
66 ros::init(argc, argv,
"service_call_expect_b");
69 return RUN_ALL_TESTS();
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
bool call(const std::string &service_name, MReq &req, MRes &res)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
bool getParam(const std::string &key, std::string &s) const