From a29f38217515b12105edd9896967567a6b6bba3e Mon Sep 17 00:00:00 2001 From: chrisparker126 Date: Sat, 19 Jul 2014 19:08:27 +0000 Subject: [PATCH] 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 --- tests/unittests/libretroshare/serialiser/support.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unittests/libretroshare/serialiser/support.cc b/tests/unittests/libretroshare/serialiser/support.cc index 4ba32ca4e..0ce69aeff 100644 --- a/tests/unittests/libretroshare/serialiser/support.cc +++ b/tests/unittests/libretroshare/serialiser/support.cc @@ -67,8 +67,8 @@ void init_item(RsTlvSecurityKeySet& ks) randString(SHORT_STR, ks.groupId); for(int i=1; i::const_iterator l_cit = l.keys.begin(), + std::map::const_iterator l_cit = l.keys.begin(), r_cit = r.keys.begin(); for(; l_cit != l.keys.end(); l_cit++, r_cit++){ @@ -190,7 +190,7 @@ void init_item(RsTlvSecurityKey& sk) sk.endTS = randnum; sk.keyFlags = randnum; sk.startTS = randnum; - randString(SHORT_STR, sk.keyId); + sk.keyId.random(); std::string randomStr; randString(LARGE_STR, randomStr); @@ -202,7 +202,7 @@ void init_item(RsTlvSecurityKey& sk) void init_item(RsTlvKeySignature& ks) { - randString(SHORT_STR, ks.keyId); + ks.keyId.random(); std::string signData; randString(LARGE_STR, signData);