24#include "../suricata-common.h"
25#include "../util-unittest.h"
27#include "../detect-isdataat.h"
28#include "../detect-engine-register.h"
29#include "../detect-engine.h"
30#include "../detect-parse.h"
32static int DetectHttpUriIsdataatParseTest(
void)
39 "content:\"one\"; http_uri; "
40 "isdataat:!4,relative; sid:1;)");
59static void DetectHttpUriRegisterTests (
void)
61 UtRegisterTest(
"DetectHttpUriIsdataatParseTest", DetectHttpUriIsdataatParseTest);
SigMatch * DetectBufferGetLastSigMatch(const Signature *s, const uint32_t buf_id)
DetectEngineCtx * DetectEngineCtxInit(void)
void DetectEngineCtxFree(DetectEngineCtx *)
Free a DetectEngineCtx::
Signature * DetectEngineAppendSig(DetectEngineCtx *, const char *)
Parse and append a Signature into the Detection Engine Context signature list.
#define ISDATAAT_RELATIVE
#define ISDATAAT_RAWBYTES
#define FAIL_IF_NULL(expr)
Fail a test if expression evaluates to NULL.
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
#define FAIL_IF_NOT(expr)
Fail a test if expression evaluates to false.
#define PASS
Pass the test.
#define FAIL_IF(expr)
Fail a test if expression evaluates to true.
main detection engine ctx
a single match condition for a signature