RetroShare/tests/unittests/libretroshare/gxs/nxs_test/nxsgrpsync_test.h
chrisparker126 0dabe4b8a1 support for retroshare links in gxs forums
- only group can link at the moment

added more nxs tests and better cleanup
- test ability sync with a delayed circle load 

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

55 lines
1.1 KiB
C++

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