Http::Testing::HeaderTest Class Reference

Inherits TestFixture.

Inheritance diagram for Http::Testing::HeaderTest:

Inheritance graph
[legend]
Collaboration diagram for Http::Testing::HeaderTest:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 32 of file HeaderTest.cpp.

Public Member Functions

 HeaderTest ()
void setUp ()
void tearDown ()
void testDefaultCtor ()
void testCtorQString ()
void testCompareTwoEqualNonEmptyHeaders ()
void testCompareTwoEqualEmptyHeaders ()
void testCompareTwoDifferentNonEmptyHeaders ()
void testCompareEmptyAndNonEmptyHeaders ()
void testValidParse ()
void testInvalidElemsParse ()
void testCaseInsensitiveParse ()
void testCTLsInValue ()
void testLeadTrailingLWS ()
void testDuplicateFields ()
void testQuotedStringInValue ()
void testHeaderFieldOnMultipleLines ()
void testContentLength ()
void testContentLocation ()
void testLanguageTags ()
void testLastModified ()
void testToString ()

Private Member Functions

 CPPUNIT_TEST_SUITE (HeaderTest)
 CPPUNIT_TEST (testDefaultCtor)
 CPPUNIT_TEST (testCtorQString)
 CPPUNIT_TEST (testCompareTwoEqualNonEmptyHeaders)
 CPPUNIT_TEST (testCompareTwoEqualEmptyHeaders)
 CPPUNIT_TEST (testCompareTwoDifferentNonEmptyHeaders)
 CPPUNIT_TEST (testCompareEmptyAndNonEmptyHeaders)
 CPPUNIT_TEST (testValidParse)
 CPPUNIT_TEST (testCaseInsensitiveParse)
 CPPUNIT_TEST (testInvalidElemsParse)
 CPPUNIT_TEST (testLeadTrailingLWS)
 CPPUNIT_TEST (testDuplicateFields)
 CPPUNIT_TEST (testQuotedStringInValue)
 CPPUNIT_TEST (testHeaderFieldOnMultipleLines)
 CPPUNIT_TEST (testCTLsInValue)
 CPPUNIT_TEST (testToString)
 CPPUNIT_TEST_SUITE_END ()
std::auto_ptr< HeadermakeNewHeader (const char *msg) const
QString getFieldValues (const char *field) const
QString getFields () const

Private Attributes

std::auto_ptr< Headerm_p


Constructor & Destructor Documentation

Http::Testing::HeaderTest::HeaderTest  )  [inline]
 

Definition at line 78 of file HeaderTest.cpp.


Member Function Documentation

Http::Testing::HeaderTest::CPPUNIT_TEST testToString   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testCTLsInValue   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testHeaderFieldOnMultipleLines   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testQuotedStringInValue   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testDuplicateFields   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testLeadTrailingLWS   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testInvalidElemsParse   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testCaseInsensitiveParse   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testValidParse   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testCompareEmptyAndNonEmptyHeaders   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testCompareTwoDifferentNonEmptyHeaders   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testCompareTwoEqualEmptyHeaders   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testCompareTwoEqualNonEmptyHeaders   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testCtorQString   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST testDefaultCtor   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST_SUITE HeaderTest   )  [private]
 

Http::Testing::HeaderTest::CPPUNIT_TEST_SUITE_END  )  [private]
 

QString Http::Testing::HeaderTest::getFields  )  const [inline, private]
 

Definition at line 70 of file HeaderTest.cpp.

QString Http::Testing::HeaderTest::getFieldValues const char *  field  )  const [inline, private]
 

Definition at line 63 of file HeaderTest.cpp.

std::auto_ptr<Header> Http::Testing::HeaderTest::makeNewHeader const char *  msg  )  const [inline, private]
 

Definition at line 57 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::setUp  )  [inline]
 

Definition at line 82 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::tearDown  )  [inline]
 

Definition at line 87 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testCaseInsensitiveParse  )  [inline]
 

Definition at line 155 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testCompareEmptyAndNonEmptyHeaders  )  [inline]
 

Definition at line 129 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testCompareTwoDifferentNonEmptyHeaders  )  [inline]
 

Definition at line 120 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testCompareTwoEqualEmptyHeaders  )  [inline]
 

Definition at line 111 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testCompareTwoEqualNonEmptyHeaders  )  [inline]
 

Definition at line 102 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testContentLength  )  [inline]
 

Definition at line 200 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testContentLocation  )  [inline]
 

Definition at line 214 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testCTLsInValue  )  [inline]
 

Definition at line 161 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testCtorQString  )  [inline]
 

Definition at line 96 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testDefaultCtor  )  [inline]
 

Definition at line 91 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testDuplicateFields  )  [inline]
 

Definition at line 175 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testHeaderFieldOnMultipleLines  )  [inline]
 

Definition at line 192 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testInvalidElemsParse  )  [inline]
 

Definition at line 147 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testLanguageTags  )  [inline]
 

Definition at line 228 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testLastModified  )  [inline]
 

Definition at line 238 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testLeadTrailingLWS  )  [inline]
 

Definition at line 168 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testQuotedStringInValue  )  [inline]
 

Definition at line 182 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testToString  )  [inline]
 

Definition at line 247 of file HeaderTest.cpp.

void Http::Testing::HeaderTest::testValidParse  )  [inline]
 

Definition at line 138 of file HeaderTest.cpp.


Member Data Documentation

std::auto_ptr<Header> Http::Testing::HeaderTest::m_p [private]
 

Definition at line 55 of file HeaderTest.cpp.


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