RetroShare/tests/unittests/libretroshare/gxs/nxs_test/nxsmsgtestscenario.h
chrisparker126 c6059906d0 Added msg sync unit test
- not passing yet but almost, more tweaking needed 
TODO: identity and circle vet test
- added retrieve msg id for convenience
- updated .pro file

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7303 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-04-26 10:07:25 +00:00

34 lines
691 B
C++

/*
* 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();
protected:
RsDataService* createDataStore(const RsPeerId& peerId);
virtual const ExpectedMap& getExpectedMap() = 0;
};
} /* namespace rs_nxs_test */
#endif /* NXSMSGTESTSCENARIO_H_ */