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,
|
bool rs_nxs_test::RsNxsSimpleDummyReputation::getReputation(const RsGxsId& id,
|
||||||
GixsReputation& rep) {
|
GixsReputation& rep) {
|
||||||
rep.score = 5;
|
rep.reputation_level = 5;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,6 +110,8 @@ namespace rs_nxs_test
|
|||||||
bool loadReputation(const RsGxsId &id, const std::list<RsPeerId>& peers);
|
bool loadReputation(const RsGxsId &id, const std::list<RsPeerId>& peers);
|
||||||
bool getReputation(const RsGxsId &id, GixsReputation &rep);
|
bool getReputation(const RsGxsId &id, GixsReputation &rep);
|
||||||
|
|
||||||
|
virtual RsReputations::ReputationLevel overallReputationLevel(const RsGxsId&) { return RsReputations::REPUTATION_NEUTRAL ; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
RepMap mRepMap;
|
RepMap mRepMap;
|
||||||
|
@ -67,7 +67,7 @@ GxsPeerNode::GxsPeerNode(const RsPeerId &ownId, const std::list<RsPeerId> &frien
|
|||||||
mGxsIdNs = new RsGxsNetService(
|
mGxsIdNs = new RsGxsNetService(
|
||||||
RS_SERVICE_GXS_TYPE_GXSID, mGxsIdDs, nxsMgr,
|
RS_SERVICE_GXS_TYPE_GXSID, mGxsIdDs, nxsMgr,
|
||||||
mGxsIdService, mGxsIdService->getServiceInfo(),
|
mGxsIdService, mGxsIdService->getServiceInfo(),
|
||||||
mGxsIdService, mGxsCircles,mGxsIdService,
|
NULL, mGxsCircles,mGxsIdService,
|
||||||
mPgpAuxUtils,
|
mPgpAuxUtils,
|
||||||
false); // don't synchronise group automatic (need explicit group request)
|
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
|
#endif
|
||||||
(RS_SERVICE_GXS_TYPE_GXSCIRCLE, mGxsCirclesDs, nxsMgr,
|
(RS_SERVICE_GXS_TYPE_GXSCIRCLE, mGxsCirclesDs, nxsMgr,
|
||||||
mGxsCircles, mGxsCircles->getServiceInfo(),
|
mGxsCircles, mGxsCircles->getServiceInfo(),
|
||||||
mGxsIdService, mGxsCircles,NULL,
|
NULL, mGxsCircles,NULL,
|
||||||
mPgpAuxUtils);
|
mPgpAuxUtils);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -107,7 +107,7 @@ GxsPeerNode::GxsPeerNode(const RsPeerId &ownId, const std::list<RsPeerId> &frien
|
|||||||
#endif
|
#endif
|
||||||
(RS_SERVICE_GXS_TYPE_TEST, mTestDs, nxsMgr,
|
(RS_SERVICE_GXS_TYPE_TEST, mTestDs, nxsMgr,
|
||||||
mTestService, mTestService->getServiceInfo(),
|
mTestService, mTestService->getServiceInfo(),
|
||||||
mGxsIdService, mGxsCircles,mGxsIdService,
|
NULL, mGxsCircles,mGxsIdService,
|
||||||
mPgpAuxUtils);
|
mPgpAuxUtils);
|
||||||
|
|
||||||
if (mUseIdentityService)
|
if (mUseIdentityService)
|
||||||
|
Loading…
Reference in New Issue
Block a user