/usr/src/rpm/BUILD/libirobot-create-0.1/tests/pause-stream-test.cc File Reference

#include "common.hh"

Include dependency graph for pause-stream-test.cc:


Functions

int run_test (iRobot::Create &robot, std::stringstream &)

Function Documentation

int run_test ( iRobot::Create robot,
std::stringstream &   
)

00022 {
00023   using namespace iRobot;
00024 
00025   robot.sendPauseStreamCommand (Create::STREAM_STATE_OFF);
00026   robot.sendPauseStreamCommand (Create::STREAM_STATE_ON);
00027 
00028   // Check stream state minimum - 1.
00029   Create::StreamState minS =
00030     static_cast<Create::StreamState> (Create::STREAM_STATE_OFF - 1);
00031 
00032   CHECK_FAILURE
00033     (InvalidArgument,
00034      robot.sendPauseStreamCommand (minS));
00035 
00036   // Create stream state maximum + 1.
00037   Create::StreamState maxS =
00038     static_cast<Create::StreamState> (Create::STREAM_STATE_ON + 1);
00039   CHECK_FAILURE
00040     (InvalidArgument,
00041      robot.sendPauseStreamCommand (maxS));
00042 
00043   return TEST_SUCCEED;
00044 }


Generated on Thu Aug 28 14:38:08 2008 for iRobot Create library by  doxygen 1.5.4