mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-06 05:14:21 -04:00
Fix UnitTest compilation
But running failed.
This commit is contained in:
parent
cac335e7f6
commit
1c2b43b7e0
19 changed files with 37 additions and 20 deletions
|
@ -26,7 +26,7 @@
|
|||
#include <iostream>
|
||||
|
||||
#include "util/rsrandom.h"
|
||||
#include "serialiser/rsmsgitems.h"
|
||||
#include "rsitems/rsmsgitems.h"
|
||||
#include "chat/rschatitems.h"
|
||||
|
||||
#include "support.h"
|
||||
|
@ -141,7 +141,7 @@ RsSerialType* init_item(RsMsgItem& mi)
|
|||
mi.sendTime = mi.recvTime;
|
||||
mi.msgFlags = mi.recvTime;
|
||||
|
||||
return new RsMsgSerialiser(true);
|
||||
return new RsMsgSerialiser(RsServiceSerializer::SERIALIZATION_FLAG_NONE);
|
||||
}
|
||||
|
||||
RsSerialType* init_item(RsMsgTagType& mtt)
|
||||
|
@ -150,7 +150,7 @@ RsSerialType* init_item(RsMsgTagType& mtt)
|
|||
mtt.tagId = rand()%24242;
|
||||
randString(SHORT_STR, mtt.text);
|
||||
|
||||
return new RsMsgSerialiser();
|
||||
return new RsMsgSerialiser(RsServiceSerializer::SERIALIZATION_FLAG_NONE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -163,7 +163,7 @@ RsSerialType* init_item(RsMsgTags& mt)
|
|||
mt.tagIds.push_back(rand()%21341);
|
||||
}
|
||||
|
||||
return new RsMsgSerialiser();
|
||||
return new RsMsgSerialiser(RsServiceSerializer::SERIALIZATION_FLAG_NONE);
|
||||
}
|
||||
|
||||
RsSerialType* init_item(RsMsgSrcId& ms)
|
||||
|
@ -171,7 +171,7 @@ RsSerialType* init_item(RsMsgSrcId& ms)
|
|||
ms.msgId = rand()%434;
|
||||
ms.srcId = RsPeerId::random();
|
||||
|
||||
return new RsMsgSerialiser();
|
||||
return new RsMsgSerialiser(RsServiceSerializer::SERIALIZATION_FLAG_NONE);
|
||||
}
|
||||
|
||||
RsSerialType* init_item(RsMsgParentId& ms)
|
||||
|
@ -179,7 +179,7 @@ RsSerialType* init_item(RsMsgParentId& ms)
|
|||
ms.msgId = rand()%354;
|
||||
ms.msgParentId = rand()%476;
|
||||
|
||||
return new RsMsgSerialiser();
|
||||
return new RsMsgSerialiser(RsServiceSerializer::SERIALIZATION_FLAG_NONE);
|
||||
}
|
||||
|
||||
bool operator ==(const struct VisibleChatLobbyInfo& l, const struct VisibleChatLobbyInfo& r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue