mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
0dabe4b8a1
- only group can link at the moment added more nxs tests and better cleanup - test ability sync with a delayed circle load git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7384 b45a01b8-16f6-495d-af2f-9b41ad6348cc
72 lines
1.4 KiB
C++
72 lines
1.4 KiB
C++
/*
|
|
* rsgxsnetservice_test.cc
|
|
*
|
|
* Created on: 11 Jul 2012
|
|
* Author: crispy
|
|
*/
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include "nxsgrpsync_test.h"
|
|
#include "nxsmsgsync_test.h"
|
|
#include "nxstesthub.h"
|
|
#include "nxsgrpsyncdelayed.h"
|
|
|
|
TEST(libretroshare_gxs, gxs_grp_sync)
|
|
{
|
|
rs_nxs_test::NxsTestScenario::pointer gsync_test = rs_nxs_test::NxsTestScenario::pointer(
|
|
new rs_nxs_test::NxsGrpSync());
|
|
rs_nxs_test::NxsTestHub tHub(gsync_test);
|
|
tHub.StartTest();
|
|
|
|
// wait for ten seconds
|
|
rs_nxs_test::NxsTestHub::Wait(10);
|
|
|
|
tHub.EndTest();
|
|
|
|
ASSERT_TRUE(tHub.testsPassed());
|
|
|
|
tHub.CleanUpTest();
|
|
}
|
|
|
|
TEST(libretroshare_gxs, gxs_grp_sync_delayed)
|
|
{
|
|
rs_nxs_test::NxsTestScenario::pointer gsync_test = rs_nxs_test::NxsTestScenario::pointer(
|
|
new rs_nxs_test::NxsGrpSyncDelayed());
|
|
rs_nxs_test::NxsTestHub tHub(gsync_test);
|
|
tHub.StartTest();
|
|
|
|
// wait for ten seconds
|
|
rs_nxs_test::NxsTestHub::Wait(20);
|
|
|
|
tHub.EndTest();
|
|
|
|
ASSERT_TRUE(tHub.testsPassed());
|
|
|
|
tHub.CleanUpTest();
|
|
|
|
}
|
|
|
|
TEST(libretroshare_gxs, gxs_msg_sync)
|
|
{
|
|
rs_nxs_test::NxsTestScenario::pointer gsync_test = rs_nxs_test::NxsTestScenario::pointer(
|
|
new rs_nxs_test::NxsMsgSync);
|
|
rs_nxs_test::NxsTestHub tHub(gsync_test);
|
|
tHub.StartTest();
|
|
|
|
// wait for ten seconds
|
|
rs_nxs_test::NxsTestHub::Wait(10);
|
|
|
|
tHub.EndTest();
|
|
|
|
ASSERT_TRUE(tHub.testsPassed());
|
|
|
|
tHub.CleanUpTest();
|
|
}
|
|
|
|
TEST(libretroshare_gxs, gxs_msg_sync_delayed)
|
|
{
|
|
|
|
}
|
|
|