mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed cmpilation of unittests
This commit is contained in:
parent
ae37787853
commit
ae2accd286
@ -191,7 +191,7 @@ RsSerialType* init_item(RsNxsSyncMsgReqItem& rsgm)
|
||||
rsgm.clear();
|
||||
|
||||
rsgm.flag = RsNxsSyncMsgItem::FLAG_USE_SYNC_HASH;
|
||||
rsgm.createdSince = rand()%24232;
|
||||
rsgm.createdSinceTS = rand()%24232;
|
||||
rsgm.transactionNumber = rand()%23;
|
||||
init_random(rsgm.grpId) ;
|
||||
randString(SHORT_STR, rsgm.syncHash);
|
||||
@ -251,7 +251,7 @@ bool operator==(const RsNxsSyncMsgReqItem& l, const RsNxsSyncMsgReqItem& r)
|
||||
{
|
||||
|
||||
if(l.flag != r.flag) return false;
|
||||
if(l.createdSince != r.createdSince) return false;
|
||||
if(l.createdSinceTS != r.createdSinceTS) return false;
|
||||
if(l.syncHash != r.syncHash) return false;
|
||||
if(l.grpId != r.grpId) return false;
|
||||
if(l.transactionNumber != r.transactionNumber) return false;
|
||||
|
@ -15,17 +15,17 @@ RsSerialType* init_item(RsGxsGrpUpdateItem& i)
|
||||
{
|
||||
i.clear();
|
||||
i.grpUpdateTS = rand()%2424;
|
||||
i.peerId = RsPeerId::random();
|
||||
i.peerID = RsPeerId::random();
|
||||
return new RsGxsUpdateSerialiser(RS_SERVICE_TYPE_PLUGIN_SIMPLE_FORUM);
|
||||
}
|
||||
|
||||
RsSerialType* init_item(RsGxsMsgUpdateItem& i)
|
||||
{
|
||||
i.clear();
|
||||
i.peerId = RsPeerId::random();
|
||||
i.peerID = RsPeerId::random();
|
||||
int numUpdates = rand()%123;
|
||||
|
||||
i.peerId = RsPeerId::random();
|
||||
i.peerID = RsPeerId::random();
|
||||
for(int j=0; j < numUpdates; j++)
|
||||
{
|
||||
struct RsGxsMsgUpdateItem::MsgUpdateInfo info;
|
||||
@ -56,7 +56,7 @@ RsSerialType* init_item(RsGxsServerMsgUpdateItem& i)
|
||||
bool operator ==(const RsGxsGrpUpdateItem& l, const RsGxsGrpUpdateItem& r)
|
||||
{
|
||||
bool ok = l.grpUpdateTS == r.grpUpdateTS;
|
||||
ok &= l.peerId == r.peerId;
|
||||
ok &= l.peerID == r.peerID;
|
||||
|
||||
return ok;
|
||||
}
|
||||
@ -68,7 +68,7 @@ bool operator ==(const RsGxsMsgUpdateItem::MsgUpdateInfo& l, const RsGxsMsgUpdat
|
||||
|
||||
bool operator ==(const RsGxsMsgUpdateItem& l, const RsGxsMsgUpdateItem& r)
|
||||
{
|
||||
bool ok = l.peerId == r.peerId;
|
||||
bool ok = l.peerID == r.peerID;
|
||||
|
||||
const std::map<RsGxsGroupId, RsGxsMsgUpdateItem::MsgUpdateInfo>& lUp = l.msgUpdateInfos, rUp = r.msgUpdateInfos;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user