RetroShare/tests/unittests/libretroshare/gxs/nxs_test/nxsgrpsync_test.h
chrisparker126 ef8f48ae73 Added rsshared ptr helper object (only use in test for memory management)
Added first nxs_test
modified pserviceserver to allow better dependency injection 

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7279 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-04-18 21:58:14 +00:00

52 lines
1.0 KiB
C++

/*
* nxsgrpsync_test.h
*
* Created on: 13 Apr 2014
* Author: crispy
*/
#ifndef NXSGRPSYNC_TEST_H_
#define NXSGRPSYNC_TEST_H_
#include "nxstestscenario.h"
namespace rs_nxs_test
{
class NxsGrpSync : public NxsTestScenario
{
public:
NxsGrpSync();
~NxsGrpSync();
void getPeers(std::list<RsPeerId>& peerIds);
RsGeneralDataService* getDataService(const RsPeerId& peerId);
bool checkTestPassed();
RsNxsNetMgr* getDummyNetManager(const RsPeerId& peerId);
RsGcxs* getDummyCircles(const RsPeerId& peerId);
RsGixsReputation* getDummyReputations(const RsPeerId& peerId);
uint16_t getServiceType();
RsServiceInfo getServiceInfo();
private:
std::list<RsPeerId> mPeerIds;
typedef std::map<RsPeerId, RsGeneralDataService*> DataMap;
typedef std::map<RsPeerId, std::list<RsNxsGrp*> > ExpectedMap;
DataMap mDataServices;
std::map<RsPeerId, RsNxsNetMgr*> mNxsNetMgrs;
RsGixsReputation* mRep;
RsGcxs* mCircles;
RsServiceInfo mServInfo;
ExpectedMap mExpectedResult;
uint16_t mServType;
};
}
#endif /* NXSGRPSYNC_TEST_H_ */