Protocols::Http::Testing::IdentityContentLengthBodyWriterTest Class Reference

Inherits TestFixture.

Inheritance diagram for Protocols::Http::Testing::IdentityContentLengthBodyWriterTest:

Inheritance graph
[legend]
Collaboration diagram for Protocols::Http::Testing::IdentityContentLengthBodyWriterTest:

Collaboration graph
[legend]
List of all members.

Detailed Description

Tests for class IdentityContentLengthBodyWriter.

Definition at line 36 of file IdentityContentLengthBodyWriterTest.cpp.

Public Member Functions

 IdentityContentLengthBodyWriterTest ()
void setUp ()
void tearDown ()
void refWriteBodyChunk (const QByteArray &chunk, bool willSucceed)
void refWriteBodyEnd ()
void testWriteBodyAtOnce ()
void testWriteBodyFailsFirstButThenSucceeds ()
void testWriteBodyInTwoChunksFailsFirstButThenSucceed ()

Private Member Functions

 CPPUNIT_TEST_SUITE (IdentityContentLengthBodyWriterTest)
 CPPUNIT_TEST (testWriteBodyAtOnce)
 CPPUNIT_TEST (testWriteBodyFailsFirstButThenSucceeds)
 CPPUNIT_TEST (testWriteBodyInTwoChunksFailsFirstButThenSucceed)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

auto_ptr< TransportMock > transport
auto_ptr< IdentityContentLengthBodyWriterwriterReal
auto_ptr< IdentityContentLengthBodyWriterDriver > writer
const QByteArray chunk1
const QByteArray chunk2
const QByteArray body

Static Private Attributes

static const int ContentLength = 40


Constructor & Destructor Documentation

Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::IdentityContentLengthBodyWriterTest  )  [inline]
 

Definition at line 54 of file IdentityContentLengthBodyWriterTest.cpp.


Member Function Documentation

Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::CPPUNIT_TEST testWriteBodyInTwoChunksFailsFirstButThenSucceed   )  [private]
 

Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::CPPUNIT_TEST testWriteBodyFailsFirstButThenSucceeds   )  [private]
 

Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::CPPUNIT_TEST testWriteBodyAtOnce   )  [private]
 

Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::CPPUNIT_TEST_SUITE IdentityContentLengthBodyWriterTest   )  [private]
 

Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::CPPUNIT_TEST_SUITE_END  )  [private]
 

void Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::refWriteBodyChunk const QByteArray &  chunk,
bool  willSucceed
[inline]
 

Definition at line 73 of file IdentityContentLengthBodyWriterTest.cpp.

void Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::refWriteBodyEnd  )  [inline]
 

Definition at line 81 of file IdentityContentLengthBodyWriterTest.cpp.

void Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::setUp  )  [inline]
 

Definition at line 59 of file IdentityContentLengthBodyWriterTest.cpp.

void Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::tearDown  )  [inline]
 

Definition at line 66 of file IdentityContentLengthBodyWriterTest.cpp.

void Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::testWriteBodyAtOnce  )  [inline]
 

Definition at line 87 of file IdentityContentLengthBodyWriterTest.cpp.

void Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::testWriteBodyFailsFirstButThenSucceeds  )  [inline]
 

Definition at line 93 of file IdentityContentLengthBodyWriterTest.cpp.

void Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::testWriteBodyInTwoChunksFailsFirstButThenSucceed  )  [inline]
 

Definition at line 100 of file IdentityContentLengthBodyWriterTest.cpp.


Member Data Documentation

const QByteArray Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::body [private]
 

Definition at line 51 of file IdentityContentLengthBodyWriterTest.cpp.

const QByteArray Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::chunk1 [private]
 

Definition at line 49 of file IdentityContentLengthBodyWriterTest.cpp.

const QByteArray Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::chunk2 [private]
 

Definition at line 50 of file IdentityContentLengthBodyWriterTest.cpp.

const int Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::ContentLength = 40 [static, private]
 

Definition at line 48 of file IdentityContentLengthBodyWriterTest.cpp.

auto_ptr<TransportMock> Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::transport [private]
 

Definition at line 44 of file IdentityContentLengthBodyWriterTest.cpp.

auto_ptr<IdentityContentLengthBodyWriterDriver> Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::writer [private]
 

Definition at line 46 of file IdentityContentLengthBodyWriterTest.cpp.

auto_ptr<IdentityContentLengthBodyWriter> Protocols::Http::Testing::IdentityContentLengthBodyWriterTest::writerReal [private]
 

Definition at line 45 of file IdentityContentLengthBodyWriterTest.cpp.


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