test_bridge_ros_marble.cpp
Go to the documentation of this file.
00001 #include <gtest/gtest.h>
00002 
00003 #include <marble/GeoDataCoordinates.h>
00004 
00005 #include "rqt_marble/bridge_ros_marble.h"
00006 #include "rqt_marble/marble_plugin.h"
00007 
00008 TEST(TestBridgeRosMarble, nullArg)
00009 {
00010   rqt_marble::BridgeRosMarble bridge;
00011 
00012   //Create Marble::Route instance and its values.
00013   Marble::Route route;
00014   Marble::GeoDataCoordinates *position1 = new Marble::GeoDataCoordinates(
00015       12.1, 14.3, 0.0, Marble::GeoDataCoordinates::Degree);
00016   rqt_cpp_common::RouteGps r = bridge.publishRouteInGps(route);
00017   EXPECT_EQ(1, sizeof(r.routes));
00018 }
00019 
00020 //TEST(TestFindGpsTopics, dummyNavSatFix)
00021 //{
00022 //  rqt_marble::BridgeRosMarble bridge;
00023 //  Marble::Route route;
00024 //  EXPECT_EQ(NULL, bridge.publishRouteInGps(route));
00025 //}
00026 
00027 int main(int argc, char **argv)
00028 {
00029   ::testing::InitGoogleTest(&argc, argv);
00030   return RUN_ALL_TESTS();
00031 }


rqt_marble
Author(s): Isaac Saito , Tobias Baer , Jan Aidel
autogenerated on Fri Apr 10 2015 02:55:01