2014-04-13 17:52:53 -04:00
|
|
|
/*
|
|
|
|
* nxsgrpsync_test.h
|
|
|
|
*
|
|
|
|
* Created on: 13 Apr 2014
|
|
|
|
* Author: crispy
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NXSGRPSYNC_TEST_H_
|
|
|
|
#define NXSGRPSYNC_TEST_H_
|
|
|
|
|
2014-04-25 18:02:34 -04:00
|
|
|
#include "nxsgrptestscenario.h"
|
2014-04-13 17:52:53 -04:00
|
|
|
|
2014-04-18 17:58:14 -04:00
|
|
|
namespace rs_nxs_test
|
2014-04-13 17:52:53 -04:00
|
|
|
{
|
|
|
|
|
2014-04-25 18:02:34 -04:00
|
|
|
class NxsGrpSync : public NxsGrpTestScenario
|
2014-04-18 17:58:14 -04:00
|
|
|
{
|
|
|
|
public:
|
2014-04-13 17:52:53 -04:00
|
|
|
|
2014-05-27 17:14:05 -04:00
|
|
|
NxsGrpSync(RsGcxs* circle = NULL, RsGixsReputation* reputation = NULL);
|
2014-04-18 17:58:14 -04:00
|
|
|
~NxsGrpSync();
|
2014-04-13 17:52:53 -04:00
|
|
|
|
2014-04-18 17:58:14 -04:00
|
|
|
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();
|
2014-05-27 17:14:05 -04:00
|
|
|
PgpAuxUtils* getDummyPgpUtils();
|
2014-04-13 17:52:53 -04:00
|
|
|
|
2014-04-25 18:02:34 -04:00
|
|
|
protected:
|
|
|
|
|
|
|
|
const ExpectedMap& getExpectedMap();
|
|
|
|
|
2014-04-18 17:58:14 -04:00
|
|
|
private:
|
2014-04-13 17:52:53 -04:00
|
|
|
|
2014-04-18 17:58:14 -04:00
|
|
|
std::list<RsPeerId> mPeerIds;
|
|
|
|
typedef std::map<RsPeerId, RsGeneralDataService*> DataMap;
|
2014-04-13 17:52:53 -04:00
|
|
|
|
2014-04-18 17:58:14 -04:00
|
|
|
DataMap mDataServices;
|
|
|
|
std::map<RsPeerId, RsNxsNetMgr*> mNxsNetMgrs;
|
|
|
|
RsGixsReputation* mRep;
|
|
|
|
RsGcxs* mCircles;
|
|
|
|
RsServiceInfo mServInfo;
|
2014-05-27 17:14:05 -04:00
|
|
|
PgpAuxUtils* mPgpUtils;
|
2014-04-13 17:52:53 -04:00
|
|
|
|
2014-04-18 17:58:14 -04:00
|
|
|
ExpectedMap mExpectedResult;
|
|
|
|
|
|
|
|
uint16_t mServType;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2014-04-13 17:52:53 -04:00
|
|
|
#endif /* NXSGRPSYNC_TEST_H_ */
|