mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-22 06:05:08 -05:00
0dabe4b8a1
- 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
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
/*
|
|
* nxstestscenario.h
|
|
*
|
|
* Created on: 10 Jul 2012
|
|
* Author: crispy
|
|
*/
|
|
|
|
#ifndef NXSTESTSCENARIO_H_
|
|
#define NXSTESTSCENARIO_H_
|
|
|
|
#include <map>
|
|
#include "retroshare/rstypes.h"
|
|
#include "gxs/rsgxsnetutils.h"
|
|
#include "gxs/rsdataservice.h"
|
|
#include "gxs/rsnxsobserver.h"
|
|
#include "util/rssharedptr.h"
|
|
|
|
namespace rs_nxs_test
|
|
{
|
|
/*!
|
|
* This scenario module provides data resources
|
|
*/
|
|
class NxsTestScenario
|
|
{
|
|
public:
|
|
|
|
typedef RsSharedPtr<NxsTestScenario> pointer;
|
|
|
|
virtual ~NxsTestScenario() {}
|
|
|
|
virtual void getPeers(std::list<RsPeerId>& peerIds) = 0;
|
|
virtual RsGeneralDataService* getDataService(const RsPeerId& peerId) = 0;
|
|
virtual bool checkTestPassed() = 0;
|
|
virtual bool checkDeepTestPassed() = 0;
|
|
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;
|
|
virtual PgpAuxUtils* getDummyPgpUtils() = 0;
|
|
|
|
virtual void cleanTestScenario() = 0;
|
|
|
|
|
|
};
|
|
}
|
|
|
|
#endif /* NXSTESTSCENARIO_H_ */
|