mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-11 16:59:25 -04:00
bug fix in FileData test
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7235 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f2380d0926
commit
3a18136678
1 changed files with 3 additions and 2 deletions
|
@ -133,12 +133,13 @@ TEST(libretroshare_serialiser, test_RsTlvFileData)
|
|||
|
||||
/* initialise */
|
||||
d1.file.filesize = 101010;
|
||||
d1.file.hash = "ABCDEFEGHE";
|
||||
d1.file.hash = RsFileHash::random() ;
|
||||
d1.file.name = "";
|
||||
d1.file.age = 0;
|
||||
d1.file.pop = 0;
|
||||
|
||||
char data[15];
|
||||
unsigned char data[15];
|
||||
RSRandom::random_bytes(data,15) ;
|
||||
d1.binData.setBinData(data, 15);
|
||||
|
||||
d1.file_offset = 222;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue