2014-04-26 06:07:25 -04:00
|
|
|
/*
|
|
|
|
* nxsmsgtestscenario.h
|
|
|
|
*
|
|
|
|
* Created on: 26 Apr 2014
|
|
|
|
* Author: crispy
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NXSMSGTESTSCENARIO_H_
|
|
|
|
#define NXSMSGTESTSCENARIO_H_
|
|
|
|
|
|
|
|
#include "nxstestscenario.h"
|
|
|
|
|
|
|
|
namespace rs_nxs_test {
|
|
|
|
|
|
|
|
class NxsMsgTestScenario : public NxsTestScenario {
|
|
|
|
public:
|
|
|
|
NxsMsgTestScenario();
|
|
|
|
virtual ~NxsMsgTestScenario();
|
|
|
|
|
|
|
|
typedef std::map<RsGxsGroupId, RsGxsMessageId::std_vector> ExpectedMsgs;
|
|
|
|
typedef std::map<RsPeerId, ExpectedMsgs> ExpectedMap;
|
|
|
|
|
|
|
|
bool checkTestPassed();
|
|
|
|
bool checkDeepTestPassed();
|
2014-05-18 12:44:19 -04:00
|
|
|
void cleanTestScenario();
|
2014-04-26 06:07:25 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2014-05-18 12:44:19 -04:00
|
|
|
RsGeneralDataService* createDataStore(const RsPeerId& peerId, uint16_t servType);
|
2014-04-26 06:07:25 -04:00
|
|
|
virtual const ExpectedMap& getExpectedMap() = 0;
|
2014-05-18 12:44:19 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
typedef std::map<RsPeerId, RsGeneralDataService*> DataPeerMap;
|
|
|
|
DataPeerMap mDataPeerMap;
|
2014-04-26 06:07:25 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace rs_nxs_test */
|
|
|
|
#endif /* NXSMSGTESTSCENARIO_H_ */
|