Robot Devastation
Public Member Functions | Private Attributes | List of all members
rd::MockNetworkEventListener Class Reference

Dummy NetworkEventListener used for testing. More...

#include <MockNetworkEventListener.hpp>

Inheritance diagram for rd::MockNetworkEventListener:
rd::NetworkEventListener

Public Member Functions

virtual bool onDataArrived (const std::vector< Player > &players)
 
int getDataArrived () const
 
void resetDataArrived ()
 
const std::vector< Player > & getStoredPlayers () const
 

Private Attributes

int data_arrived
 
std::vector< Playerstored_players
 

Detailed Description

The required pure virtual members are left with their function body empty.

This mock object allows to access the received data and has a counter of the incoming messages received.


The documentation for this class was generated from the following files: