mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-10 06:15:50 -05:00
Added librssimulator, and very basic test for statusservice.
Obviously lots to do here - but its a start! git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7258 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5221ec0aca
commit
c98d6d1595
12 changed files with 966 additions and 8 deletions
38
tests/librssimulator/testing/IsolatedServiceTester.h
Normal file
38
tests/librssimulator/testing/IsolatedServiceTester.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#pragma once
|
||||
|
||||
#include <list>
|
||||
#include "retroshare/rsids.h"
|
||||
#include "pqi/p3linkmgr.h"
|
||||
|
||||
class RsItem;
|
||||
class PeerNode;
|
||||
class RsSerialType;
|
||||
class RsSerialiser;
|
||||
|
||||
class IsolatedServiceTester
|
||||
{
|
||||
public:
|
||||
IsolatedServiceTester(RsPeerId ownId, std::list<RsPeerId> peers);
|
||||
~IsolatedServiceTester();
|
||||
|
||||
void addSerialType(RsSerialType *st);
|
||||
bool startup();
|
||||
|
||||
void notifyPeers();
|
||||
bool bringOnline(std::list<RsPeerId> peers);
|
||||
|
||||
bool tick();
|
||||
bool tickUntilPacket(int max_ticks);
|
||||
|
||||
RsItem *getPacket();
|
||||
bool sendPacket(RsItem *);
|
||||
|
||||
PeerNode *getPeerNode() { return mNode; }
|
||||
|
||||
private:
|
||||
PeerNode *mNode;
|
||||
RsSerialiser *mRsSerialiser;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue