2014-04-05 03:27:18 -04:00
|
|
|
/*
|
|
|
|
* nxstestscenario.h
|
|
|
|
*
|
|
|
|
* Created on: 10 Jul 2012
|
|
|
|
* Author: crispy
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NXSTESTSCENARIO_H_
|
|
|
|
#define NXSTESTSCENARIO_H_
|
|
|
|
|
|
|
|
#include <map>
|
2014-04-13 17:52:53 -04:00
|
|
|
#include "retroshare/rstypes.h"
|
2014-04-18 17:58:14 -04:00
|
|
|
#include "gxs/rsgxsnetutils.h"
|
2014-04-05 03:27:18 -04:00
|
|
|
#include "gxs/rsdataservice.h"
|
|
|
|
#include "gxs/rsnxsobserver.h"
|
2014-04-18 17:58:14 -04:00
|
|
|
#include "util/rssharedptr.h"
|
2014-04-05 03:27:18 -04:00
|
|
|
|
2014-04-13 17:52:53 -04:00
|
|
|
namespace rs_nxs_test
|
2014-04-05 03:27:18 -04:00
|
|
|
{
|
2014-04-13 17:52:53 -04:00
|
|
|
/*!
|
|
|
|
* This scenario module provides data resources
|
|
|
|
*/
|
|
|
|
class NxsTestScenario
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2014-04-18 17:58:14 -04:00
|
|
|
typedef RsSharedPtr<NxsTestScenario> pointer;
|
|
|
|
|
2014-04-13 17:52:53 -04:00
|
|
|
virtual ~NxsTestScenario() {}
|
|
|
|
|
|
|
|
virtual void getPeers(std::list<RsPeerId>& peerIds) = 0;
|
|
|
|
virtual RsGeneralDataService* getDataService(const RsPeerId& peerId) = 0;
|
|
|
|
virtual bool checkTestPassed() = 0;
|
2014-04-25 18:02:34 -04:00
|
|
|
virtual bool checkDeepTestPassed() = 0;
|
2014-04-13 17:52:53 -04:00
|
|
|
virtual RsNxsNetMgr* getDummyNetManager(const RsPeerId& peerId) = 0;
|
|
|
|
virtual RsGcxs* getDummyCircles(const RsPeerId& peerId) = 0;
|
|
|
|
virtual RsGixsReputation* getDummyReputations(const RsPeerId& peerId) = 0;
|
|
|
|
virtual uint16_t getServiceType() = 0;
|
|
|
|
virtual RsServiceInfo getServiceInfo() = 0;
|
|
|
|
|
2014-05-18 12:44:19 -04:00
|
|
|
virtual void cleanTestScenario() = 0;
|
|
|
|
|
2014-04-25 18:02:34 -04:00
|
|
|
|
2014-04-13 17:52:53 -04:00
|
|
|
};
|
|
|
|
}
|
2014-04-05 03:27:18 -04:00
|
|
|
|
|
|
|
#endif /* NXSTESTSCENARIO_H_ */
|