18 #include "../app-layer-htp-file.h"
19 #include "../util-unittest.h"
26 static int AppLayerHtpFileParseContentRangeTest01 (
void)
28 HTTPContentRange range;
29 bstr * rawvalue = bstr_dup_c(
"bytes 12-25/100");
43 static int AppLayerHtpFileParseContentRangeTest02 (
void)
45 HTTPContentRange range;
46 bstr * rawvalue = bstr_dup_c(
"bytes 15335424-27514354/");
57 static int AppLayerHtpFileParseContentRangeTest03 (
void)
59 HTTPContentRange range;
60 bstr * rawvalue = bstr_dup_c(
"bytes 15335424-");
72 static int AppLayerHtpFileParseContentRangeTest04 (
void)
74 HTTPContentRange range;
75 bstr * rawvalue = bstr_dup_c(
"bytes 24-42/*");
88 UtRegisterTest(
"AppLayerHtpFileParseContentRangeTest01", AppLayerHtpFileParseContentRangeTest01);
89 UtRegisterTest(
"AppLayerHtpFileParseContentRangeTest02", AppLayerHtpFileParseContentRangeTest02);
90 UtRegisterTest(
"AppLayerHtpFileParseContentRangeTest03", AppLayerHtpFileParseContentRangeTest03);
91 UtRegisterTest(
"AppLayerHtpFileParseContentRangeTest04", AppLayerHtpFileParseContentRangeTest04);