mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-15 16:49:20 -05:00
Improvements to tests.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7326 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2232e8e583
commit
c945aa18dd
8 changed files with 697 additions and 21 deletions
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
#include "gxs/rsgxsnetservice.h"
|
||||
|
||||
/* This is a wrapper class used to allow testing
|
||||
* of internal functions
|
||||
*/
|
||||
|
||||
class RsGxsNetServiceTester: public RsGxsNetService
|
||||
{
|
||||
public:
|
||||
|
||||
RsGxsNetServiceTester(
|
||||
uint16_t servType, RsGeneralDataService *gds,
|
||||
RsNxsNetMgr *netMgr,
|
||||
RsNxsObserver *nxsObs, // used to be = NULL.
|
||||
const RsServiceInfo serviceInfo,
|
||||
RsGixsReputation* reputations = NULL, RsGcxs* circles = NULL,
|
||||
PgpAuxUtils *pgpUtils = NULL,
|
||||
bool grpAutoSync = true);
|
||||
|
||||
|
||||
bool fetchAllowedGroups(const RsPeerId &peerId, std::vector<RsGxsGroupId> &groups);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue