Improvements to TestPeer and PeerTest classes

This commit is contained in:
Vinnie Falco
2013-08-14 10:20:47 -07:00
parent 5e5b49d4e2
commit a3ab23a36a
9 changed files with 150 additions and 27 deletions

View File

@@ -22,14 +22,6 @@
class TestPeerUnitTests : public UnitTest
{
public:
enum
{
timeoutSeconds = 3
};
TestPeerUnitTests () : UnitTest ("TestPeer", "beast", runManual)
{
}
template <typename Details, typename Arg >
void testDetails (Arg const& arg = Arg ())
@@ -43,6 +35,17 @@ public:
testDetails <TcpDetails, TcpDetails::arg_type> (protocol::v4 ());
testDetails <TcpDetails, TcpDetails::arg_type> (protocol::v6 ());
}
//--------------------------------------------------------------------------
enum
{
timeoutSeconds = 10
};
TestPeerUnitTests () : UnitTest ("TestPeer", "beast", runManual)
{
}
};
static TestPeerUnitTests testPeerUnitTests;