mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-18 05:44:14 -05:00
![chrisparker126](/assets/img/avatar_default.png)
(automates comparisons) fixed some unit tests caused by copy constructor removal git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7302 b45a01b8-16f6-495d-af2f-9b41ad6348cc
50 lines
1.0 KiB
C++
50 lines
1.0 KiB
C++
/*
|
|
* nxsmsgsync_test.h
|
|
*
|
|
* Created on: 13 Apr 2014
|
|
* Author: crispy
|
|
*/
|
|
|
|
#ifndef NXSMSGSYNC_TEST_H_
|
|
#define NXSMSGSYNC_TEST_H_
|
|
|
|
#include "nxstestscenario.h"
|
|
|
|
|
|
class NxsMessageTest : public rs_nxs_test::NxsTestScenario
|
|
{
|
|
public:
|
|
|
|
NxsMessageTest();
|
|
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 /* NXSMSGSYNC_TEST_H_ */
|