Go to the documentation of this file.00001
00024 #include "gtest/gtest.h"
00025 #include "irtrans_mock.h"
00026 #include "ir_controller_node.h"
00027
00028 using testing::_;
00029 using testing::DoAll;
00030 using testing::SetArgumentPointee;
00031 using testing::Return;
00032
00033 TEST(IrController, Connect_Disconnect)
00034 {
00035 MockIrTransWrapper mock;
00036
00037 EXPECT_CALL(mock, connect())
00038 .Times(1)
00039 .WillOnce(Return(0));
00040 EXPECT_CALL(mock, disconnect())
00041 .Times(1);
00042
00043 IRControllerNode ir_controller_node(&mock);
00044 }
00045
00046 int main(int argc, char **argv)
00047 {
00048 ros::init(argc, argv, "ir_controller_node_tests");
00049
00050 ::testing::InitGoogleMock(&argc, argv);
00051
00052 return RUN_ALL_TESTS();
00053 }