Config.maxRequestHeaderSize = 1024; // XXX: unit test the RequestParser handling of this limit
}
+#if __cplusplus >= 201103L
+
struct resultSet {
bool parsed;
bool needsMore;
CPPUNIT_ASSERT_EQUAL(expect.versionEnd, output.req.v_end);
CPPUNIT_ASSERT_EQUAL(expect.version, output.msgProtocol_);
}
+#endif /* __cplusplus >= 200103L */
void
testHttp1Parser::testParserConstruct()
}
}
+#if __cplusplus >= 201103L
void
testHttp1Parser::testParseRequestLineProtocols()
{
break;
}
}
+#endif /* __cplusplus >= 201103L */
{
CPPUNIT_TEST_SUITE( testHttp1Parser );
CPPUNIT_TEST( testParserConstruct );
+
+#if __cplusplus >= 201103L
CPPUNIT_TEST( testParseRequestLineTerminators );
CPPUNIT_TEST( testParseRequestLineMethods );
CPPUNIT_TEST( testParseRequestLineProtocols );
CPPUNIT_TEST( testParseRequestLineStrange );
CPPUNIT_TEST( testParseRequestLineInvalid );
CPPUNIT_TEST( testDripFeed );
+#endif
CPPUNIT_TEST_SUITE_END();
protected:
void testParserConstruct(); // whether the constructor works
+#if __cplusplus >= 201103L
// request-line unit tests
void testParseRequestLineTerminators(); // terminator detection correct
void testParseRequestLineMethods(); // methoid detection correct
void testParseRequestLineInvalid(); // rejection of invalid lines happens
void testDripFeed(); // test incremental parse works
+#endif
};
#endif