Program Listing for File entrypoint.h

Return to documentation for file (aslam_cv2/aslam_cv_common/include/aslam/common/entrypoint.h)

#ifndef GTEST_CATKIN_ENTRYPOINT_H_
#define GTEST_CATKIN_ENTRYPOINT_H_

#include <gtest/gtest.h>
#include <gflags/gflags.h>
#include <glog/logging.h>

#define ASLAM_UNITTEST_ENTRYPOINT\
  int main(int argc, char** argv) {\
  ::testing::InitGoogleTest(&argc, argv);\
  google::InitGoogleLogging(argv[0]);\
  google::ParseCommandLineFlags(&argc, &argv, false);\
  google::InstallFailureSignalHandler();\
  ::testing::FLAGS_gtest_death_test_style = "threadsafe";\
  FLAGS_alsologtostderr = true; \
  FLAGS_colorlogtostderr = true; \
  return RUN_ALL_TESTS();\
}

// Make the eclipse parser silent.
#ifndef TYPED_TEST
#define TYPED_TEST(x,y) int x##y()
#endif
#ifndef TYPED_TEST_CASE
#define TYPED_TEST_CASE(x,y) int x##y()
#endif

#endif  // GTEST_CATKIN_ENTRYPOINT_H_