mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05: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
@ -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…
Reference in New Issue
Block a user