Robot Devastation
Classes | Functions | Variables
rd::test Namespace Reference

Contains classes related to unit testing.

Classes

class  DeadStateTest
 
class  DeadStateTestEnvironment
 
class  FSMBuilderTest
 
class  FSMBuilderTestEnvironment
 
class  FSMTest
 
class  FSMTestEnvironment
 
class  GameStateTest
 
class  GameStateTestEnvironment
 
class  InitStateTest
 
class  InitStateTestEnvironment
 
class  MentalMapTest
 
class  MockAudioManagerTest
 
class  MockImageManagerEnvironment
 
class  MockImageManagerTest
 
class  MockInputManagerTest
 
class  MockNetworkManagerTest
 
class  MockRobotManagerTest
 
class  ProcessorImageEventListenerTest
 
class  RobotDevastationTest
 
class  RobotDevastationTestEnvironment
 
class  SDLAudioManagerTest
 
class  TestEventListener
 
class  YarpImageManagerEnvironment
 
class  YarpImageManagerTest
 
class  YarpNetworkManagerEnvironment
 
class  YarpNetworkManagerNoKeepAlive
 
class  YarpNetworkManagerNoKeepAliveTest
 
class  YarpNetworkManagerTest
 
class  YarpNetworkManagerTestBase
 

Functions

 TEST_F (DeadStateTest, DeadStateGoesToRespawn)
 
 TEST_F (DeadStateTest, DeadStateGoesToLogoutKeyPress)
 
 TEST_F (DeadStateTest, DeadStateGoesToLogoutWindowEvent)
 
 TEST_F (FSMTest, StateMachineFlowIsCorrect)
 
 TEST_F (FSMTest, StateMachineStopsAtNULL)
 
 TEST_F (FSMBuilderTest, StateMachineGeneratedIsCorrect)
 
 TEST_F (FSMBuilderTest, StateMachineGeneratedStopsAtNULL)
 
 TEST_F (GameStateTest, GameStateGameFlowIsCorrect)
 
 TEST_F (GameStateTest, GameStateQuitsWhenRequestedKeyPress)
 
 TEST_F (GameStateTest, GameStateQuitsWhenRequestedWindowEvent)
 
 TEST_F (InitStateTest, InitStateGoesToLogin)
 
 TEST_F (InitStateTest, InitStateGoesToExitKeyPress)
 
 TEST_F (InitStateTest, InitStateGoesToExitWindowEvent)
 
 TEST_F (MentalMapTest, MentalMapIsSingleton)
 
 TEST_F (MentalMapTest, ConfigureMentalMap)
 
 TEST_F (MentalMapTest, UpdatePlayersUpdatesPlayers)
 
 TEST_F (MentalMapTest, MyselfPointsToMe)
 
 TEST_F (MentalMapTest, RespawnWorks)
 
 TEST_F (MentalMapTest, UpdateTargetsUpdateTargets)
 
 TEST_F (MentalMapTest, UpdateEnemiesEventuallyDeletesEnemies)
 
 TEST_F (MockAudioManagerTest, AudioManagerIsSingleton)
 
 TEST_F (MockAudioManagerTest, AudioManagerLoadsAudio)
 
 TEST_F (MockAudioManagerTest, AudioManagerPlaysOneSound)
 
 TEST_F (MockAudioManagerTest, AudioManagerPlaysFx)
 
 TEST_F (MockAudioManagerTest, AudioManagerPlaysAllSounds)
 
 TEST_F (MockImageManagerTest, MockImageManagerNotificationWorks)
 
 TEST_F (MockInputManagerTest, SingleControlKeyPressSentAndReceivedCorrectly)
 
 TEST_F (MockInputManagerTest, SinglePrintableKeyPressSentAndReceivedCorrectly)
 
 TEST_F (MockInputManagerTest, SeveralControlKeyPressesSentAndReceivedCorrectly)
 
 TEST_F (MockInputManagerTest, SeveralPrintableKeyPressesSentAndReceivedCorrectly)
 
 TEST_F (MockInputManagerTest, KeyUpAndKeyDownSentAndReceivedCorrectly)
 
 TEST_F (MockInputManagerTest, WindowEventSentAndReceivedCorrectly)
 
 TEST_F (MockNetworkManagerTest, ManagerDoesNotStartIfNotConfigured)
 
 TEST_F (MockNetworkManagerTest, PlayerCreatedWhenLogin)
 
 TEST_F (MockNetworkManagerTest, ErrorLoginTwice)
 
 TEST_F (MockNetworkManagerTest, PlayerRemovedOnLogout)
 
 TEST_F (MockNetworkManagerTest, ErrorLogoutTwice)
 
 TEST_F (MockNetworkManagerTest, SetPlayerAddsPlayer)
 
 TEST_F (MockNetworkManagerTest, PlayerDamagedWhenShot)
 
 TEST_F (MockNetworkManagerTest, ListenersNotifiedOnEvent)
 
 TEST_F (MockNetworkManagerTest, ManagerIsIntegratedWithMentalMap)
 
 TEST_F (MockRobotManagerTest, MockRobotMoves)
 
 TEST_F (MockRobotManagerTest, MockRobotCameraMoves)
 
void compare_targets (Target target1, Target target2, int threshold=20)
 
 TEST_F (ProcessorImageEventListenerTest, TargetDetectionWorks)
 
 TEST_F (ProcessorImageEventListenerTest, BadQRsAreIgnored)
 
 TEST_F (RobotDevastationTest, RobotDevastationWorks)
 
 TEST_F (SDLAudioManagerTest, AudioManagerIsSingleton)
 
 TEST_F (SDLAudioManagerTest, AudioManagerLoadsAudio)
 
 TEST_F (SDLAudioManagerTest, AudioManagerPlaysOneSound)
 
 TEST_F (SDLAudioManagerTest, AudioManagerPlaysFx)
 
 TEST_F (SDLAudioManagerTest, AudioManagerPlaysAllSounds)
 
 TEST_F (YarpImageManagerTest, YarpImageManagerWorks)
 
 TEST_F (YarpNetworkManagerTest, ManagerDoesNotStartIfNotConfigured)
 
 TEST_F (YarpNetworkManagerTest, NetworkManagerIsSingleton)
 
 TEST_F (YarpNetworkManagerTest, NetworkManagerAPIWorks)
 
 TEST_F (YarpNetworkManagerNoKeepAliveTest, DisconnectedIfNoKeepAlive)
 

Variables

bool finished = false
 
int x_pos = 0
 
int y_pos = 0