mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-02 19:26:31 -04:00
updated tests and also fixed a few bugs in using random initialisation routines
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-NewGRouterModel@7839 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e8f5f44318
commit
ac4f51623b
17 changed files with 95 additions and 91 deletions
|
@ -31,7 +31,7 @@ static FileIndex *createBasicFileIndex(time_t age);
|
|||
TEST(libretroshare_dbase, SaveTest)
|
||||
{
|
||||
RsPeerId peerId;
|
||||
peerId.random();
|
||||
peerId = RsPeerId::random();
|
||||
FileIndex *fi1 = createBasicFileIndex(100);
|
||||
FileIndex *fi2 = new FileIndex(peerId);
|
||||
|
||||
|
@ -59,7 +59,7 @@ TEST(libretroshare_dbase, SaveTest)
|
|||
FileIndex *createBasicFileIndex(time_t age)
|
||||
{
|
||||
RsPeerId peerId;
|
||||
peerId.random();
|
||||
peerId = RsPeerId::random();
|
||||
FileIndex *fi = new FileIndex(peerId);
|
||||
|
||||
FileEntry fe;
|
||||
|
|
|
@ -156,7 +156,7 @@ int test2(FileIndex *fi)
|
|||
FileIndex *createBasicFileIndex(time_t age)
|
||||
{
|
||||
RsPeerId peerId;
|
||||
peerId.random();
|
||||
peerId = RsPeerId::random();
|
||||
FileIndex *fi = new FileIndex(peerId);
|
||||
|
||||
FileEntry fe;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
TEST(libretroshare_dbase, SearchTest)
|
||||
{
|
||||
RsPeerId peerId;
|
||||
peerId.random();
|
||||
peerId = RsPeerId::random();
|
||||
|
||||
std::cout << std::string::npos << std::endl;
|
||||
std::string testfile = "searchtest.index";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue