test_nodelet_log_utils.cpp
Go to the documentation of this file.
1 /*
2  * test_nodelet_log.cpp
3  * Author: Yuki Furuta <furushchev@jsk.imi.i.u-tokyo.ac.jp>
4  */
5 
6 #include <gtest/gtest.h>
7 #include <nodelet/nodelet.h>
8 #include <nodelet/loader.h>
9 #include <ros/ros.h>
10 #include <string>
11 #include <vector>
12 
13 TEST(JSKNodeletLog, TEST_LOG)
14 {
15  nodelet::Loader n(false);
16  ros::M_string remappings;
17  std::string nodelet_name = ros::this_node::getName();
18  std::string nodelet_type = "jsk_topic_tools_test/LogUtils";
19  std::vector<std::string> argv;
20  EXPECT_TRUE(n.load(nodelet_name, nodelet_type, remappings, argv));
21 }
22 
23 int main(int argc, char** argv)
24 {
25  ros::init(argc, argv, "test_nodelet_log_utils");
26  ::testing::InitGoogleTest(&argc, argv);
27  return RUN_ALL_TESTS();
28 }
bool load(const std::string &name, const std::string &type, const M_string &remappings, const V_string &my_argv)
int main(int argc, char **argv)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL const std::string & getName()
std::map< std::string, std::string > M_string
TEST(JSKNodeletLog, TEST_LOG)


jsk_topic_tools
Author(s): Kei Okada , Yusuke Furuta
autogenerated on Tue Feb 6 2018 03:45:19