Protocols::Generics::Testing::TcpTransportFactoryTest Class Reference

Inherits TestFixture.

Inheritance diagram for Protocols::Generics::Testing::TcpTransportFactoryTest:

Inheritance graph
[legend]
Collaboration diagram for Protocols::Generics::Testing::TcpTransportFactoryTest:

Collaboration graph
[legend]
List of all members.

Detailed Description

Tests for class TcpTransportFactory.

Todo:
test multiple createTransport in parallel

try to delay acceptConnection() and see what happens

Todo:
Should we move this test to another tester-app dedicated on OS-integration and acceptance tests?

Definition at line 71 of file TcpTransportFactoryTest.cpp.

Public Member Functions

void setUp ()
void tearDown ()
void refCreatingTransport (const Uri &uri)
void refWaitForTransportCreationToFail (const Uri &uri)
void testCreateTcpTransportForIpFails ()
void refWaitForTransportCreationToSucceed (const Uri &uri)
void stateTransportCreated (const Uri &uri)
void testCreateTcpTransportForIpSucceeds ()
void testDestroyTcpTransport ()
void refReadBufferSize (Transport *transport, int size)
void refWriteBufferSize (Transport *transport, int size)
void testReadBufferIs40Bytes ()
void testWriteBufferIs40Bytes ()
void testReadBufferIs800Bytes ()
void testWriteBufferIs800Bytes ()

Private Member Functions

 CPPUNIT_TEST_SUITE (TcpTransportFactoryTest)
 CPPUNIT_TEST (testCreateTcpTransportForIpFails)
 CPPUNIT_TEST (testCreateTcpTransportForIpSucceeds)
 CPPUNIT_TEST (testDestroyTcpTransport)
 CPPUNIT_TEST (testReadBufferIs40Bytes)
 CPPUNIT_TEST (testWriteBufferIs40Bytes)
 CPPUNIT_TEST (testReadBufferIs800Bytes)
 CPPUNIT_TEST (testWriteBufferIs800Bytes)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

auto_ptr< TcpTestertcpTester
auto_ptr< TransportStatusMock > transportStatus
auto_ptr< TransportFactoryStatusMock > status
auto_ptr< TcpTransportFactoryfactoryReal
auto_ptr< TcpTransportFactoryDriver > factory
Uri tcpUri40ByteBuffers
Uri tcpUri800ByteBuffers


Member Function Documentation

Protocols::Generics::Testing::TcpTransportFactoryTest::CPPUNIT_TEST testWriteBufferIs800Bytes   )  [private]
 

Protocols::Generics::Testing::TcpTransportFactoryTest::CPPUNIT_TEST testReadBufferIs800Bytes   )  [private]
 

Protocols::Generics::Testing::TcpTransportFactoryTest::CPPUNIT_TEST testWriteBufferIs40Bytes   )  [private]
 

Protocols::Generics::Testing::TcpTransportFactoryTest::CPPUNIT_TEST testReadBufferIs40Bytes   )  [private]
 

Protocols::Generics::Testing::TcpTransportFactoryTest::CPPUNIT_TEST testDestroyTcpTransport   )  [private]
 

Protocols::Generics::Testing::TcpTransportFactoryTest::CPPUNIT_TEST testCreateTcpTransportForIpSucceeds   )  [private]
 

Protocols::Generics::Testing::TcpTransportFactoryTest::CPPUNIT_TEST testCreateTcpTransportForIpFails   )  [private]
 

Protocols::Generics::Testing::TcpTransportFactoryTest::CPPUNIT_TEST_SUITE TcpTransportFactoryTest   )  [private]
 

Protocols::Generics::Testing::TcpTransportFactoryTest::CPPUNIT_TEST_SUITE_END  )  [private]
 

void Protocols::Generics::Testing::TcpTransportFactoryTest::refCreatingTransport const Uri uri  )  [inline]
 

Definition at line 116 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::refReadBufferSize Transport transport,
int  size
[inline]
 

Definition at line 170 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::refWaitForTransportCreationToFail const Uri uri  )  [inline]
 

Definition at line 122 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::refWaitForTransportCreationToSucceed const Uri uri  )  [inline]
 

Definition at line 137 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::refWriteBufferSize Transport transport,
int  size
[inline]
 

Definition at line 189 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::setUp  )  [inline]
 

Definition at line 93 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::stateTransportCreated const Uri uri  )  [inline]
 

Definition at line 146 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::tearDown  )  [inline]
 

Definition at line 107 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::testCreateTcpTransportForIpFails  )  [inline]
 

Definition at line 130 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::testCreateTcpTransportForIpSucceeds  )  [inline]
 

Definition at line 153 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::testDestroyTcpTransport  )  [inline]
 

Definition at line 161 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::testReadBufferIs40Bytes  )  [inline]
 

Definition at line 196 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::testReadBufferIs800Bytes  )  [inline]
 

Definition at line 208 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::testWriteBufferIs40Bytes  )  [inline]
 

Definition at line 202 of file TcpTransportFactoryTest.cpp.

void Protocols::Generics::Testing::TcpTransportFactoryTest::testWriteBufferIs800Bytes  )  [inline]
 

Definition at line 214 of file TcpTransportFactoryTest.cpp.


Member Data Documentation

auto_ptr<TcpTransportFactoryDriver> Protocols::Generics::Testing::TcpTransportFactoryTest::factory [private]
 

Definition at line 87 of file TcpTransportFactoryTest.cpp.

auto_ptr<TcpTransportFactory> Protocols::Generics::Testing::TcpTransportFactoryTest::factoryReal [private]
 

Definition at line 86 of file TcpTransportFactoryTest.cpp.

auto_ptr<TransportFactoryStatusMock> Protocols::Generics::Testing::TcpTransportFactoryTest::status [private]
 

Definition at line 85 of file TcpTransportFactoryTest.cpp.

auto_ptr<TcpTester> Protocols::Generics::Testing::TcpTransportFactoryTest::tcpTester [private]
 

Definition at line 83 of file TcpTransportFactoryTest.cpp.

Uri Protocols::Generics::Testing::TcpTransportFactoryTest::tcpUri40ByteBuffers [private]
 

Definition at line 89 of file TcpTransportFactoryTest.cpp.

Uri Protocols::Generics::Testing::TcpTransportFactoryTest::tcpUri800ByteBuffers [private]
 

Definition at line 90 of file TcpTransportFactoryTest.cpp.

auto_ptr<TransportStatusMock> Protocols::Generics::Testing::TcpTransportFactoryTest::transportStatus [private]
 

Definition at line 84 of file TcpTransportFactoryTest.cpp.


The documentation for this class was generated from the following file: