mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
fixed unit test compile
updated support file for unit test git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7459 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
99519f14bd
commit
a29f382175
1 changed files with 5 additions and 5 deletions
|
@ -67,8 +67,8 @@ void init_item(RsTlvSecurityKeySet& ks)
|
||||||
randString(SHORT_STR, ks.groupId);
|
randString(SHORT_STR, ks.groupId);
|
||||||
for(int i=1; i<n; i++)
|
for(int i=1; i<n; i++)
|
||||||
{
|
{
|
||||||
std::string a_str;
|
RsGxsId a_str;
|
||||||
randString(SHORT_STR, a_str);
|
a_str.random();
|
||||||
|
|
||||||
RsTlvSecurityKey& a_key = ks.keys[a_str];
|
RsTlvSecurityKey& a_key = ks.keys[a_str];
|
||||||
init_item(a_key);
|
init_item(a_key);
|
||||||
|
@ -81,7 +81,7 @@ bool operator==(const RsTlvSecurityKeySet& l, const RsTlvSecurityKeySet& r)
|
||||||
|
|
||||||
if(l.groupId != r.groupId) return false;
|
if(l.groupId != r.groupId) return false;
|
||||||
|
|
||||||
std::map<std::string, RsTlvSecurityKey>::const_iterator l_cit = l.keys.begin(),
|
std::map<RsGxsId, RsTlvSecurityKey>::const_iterator l_cit = l.keys.begin(),
|
||||||
r_cit = r.keys.begin();
|
r_cit = r.keys.begin();
|
||||||
|
|
||||||
for(; l_cit != l.keys.end(); l_cit++, r_cit++){
|
for(; l_cit != l.keys.end(); l_cit++, r_cit++){
|
||||||
|
@ -190,7 +190,7 @@ void init_item(RsTlvSecurityKey& sk)
|
||||||
sk.endTS = randnum;
|
sk.endTS = randnum;
|
||||||
sk.keyFlags = randnum;
|
sk.keyFlags = randnum;
|
||||||
sk.startTS = randnum;
|
sk.startTS = randnum;
|
||||||
randString(SHORT_STR, sk.keyId);
|
sk.keyId.random();
|
||||||
|
|
||||||
std::string randomStr;
|
std::string randomStr;
|
||||||
randString(LARGE_STR, randomStr);
|
randString(LARGE_STR, randomStr);
|
||||||
|
@ -202,7 +202,7 @@ void init_item(RsTlvSecurityKey& sk)
|
||||||
|
|
||||||
void init_item(RsTlvKeySignature& ks)
|
void init_item(RsTlvKeySignature& ks)
|
||||||
{
|
{
|
||||||
randString(SHORT_STR, ks.keyId);
|
ks.keyId.random();
|
||||||
|
|
||||||
std::string signData;
|
std::string signData;
|
||||||
randString(LARGE_STR, signData);
|
randString(LARGE_STR, signData);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue