mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
fixed compilation of unittests
This commit is contained in:
parent
df94de9142
commit
c4695e3341
@ -62,7 +62,7 @@ bool rs_nxs_test::RsNxsSimpleDummyReputation::loadReputation(const RsGxsId& id,
|
||||
|
||||
bool rs_nxs_test::RsNxsSimpleDummyReputation::getReputation(const RsGxsId& id,
|
||||
GixsReputation& rep) {
|
||||
rep.score = 5;
|
||||
rep.reputation_level = 5;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -110,6 +110,8 @@ namespace rs_nxs_test
|
||||
bool loadReputation(const RsGxsId &id, const std::list<RsPeerId>& peers);
|
||||
bool getReputation(const RsGxsId &id, GixsReputation &rep);
|
||||
|
||||
virtual RsReputations::ReputationLevel overallReputationLevel(const RsGxsId&) { return RsReputations::REPUTATION_NEUTRAL ; }
|
||||
|
||||
private:
|
||||
|
||||
RepMap mRepMap;
|
||||
|
@ -67,7 +67,7 @@ GxsPeerNode::GxsPeerNode(const RsPeerId &ownId, const std::list<RsPeerId> &frien
|
||||
mGxsIdNs = new RsGxsNetService(
|
||||
RS_SERVICE_GXS_TYPE_GXSID, mGxsIdDs, nxsMgr,
|
||||
mGxsIdService, mGxsIdService->getServiceInfo(),
|
||||
mGxsIdService, mGxsCircles,mGxsIdService,
|
||||
NULL, mGxsCircles,mGxsIdService,
|
||||
mPgpAuxUtils,
|
||||
false); // don't synchronise group automatic (need explicit group request)
|
||||
|
||||
@ -81,7 +81,7 @@ GxsPeerNode::GxsPeerNode(const RsPeerId &ownId, const std::list<RsPeerId> &frien
|
||||
#endif
|
||||
(RS_SERVICE_GXS_TYPE_GXSCIRCLE, mGxsCirclesDs, nxsMgr,
|
||||
mGxsCircles, mGxsCircles->getServiceInfo(),
|
||||
mGxsIdService, mGxsCircles,NULL,
|
||||
NULL, mGxsCircles,NULL,
|
||||
mPgpAuxUtils);
|
||||
}
|
||||
else
|
||||
@ -107,7 +107,7 @@ GxsPeerNode::GxsPeerNode(const RsPeerId &ownId, const std::list<RsPeerId> &frien
|
||||
#endif
|
||||
(RS_SERVICE_GXS_TYPE_TEST, mTestDs, nxsMgr,
|
||||
mTestService, mTestService->getServiceInfo(),
|
||||
mGxsIdService, mGxsCircles,mGxsIdService,
|
||||
NULL, mGxsCircles,mGxsIdService,
|
||||
mPgpAuxUtils);
|
||||
|
||||
if (mUseIdentityService)
|
||||
|
Loading…
Reference in New Issue
Block a user