http2_hpack_int_decode_test.cc (snort3-3.1.29.0) | : | http2_hpack_int_decode_test.cc (snort3-3.1.30.0) | ||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
//-------------------------------------------------------------------------- | //-------------------------------------------------------------------------- | |||
// http2_hpack_int_decode_test.cc author Maya Dagon <mdagon@cisco.com> | // http2_hpack_int_decode_test.cc author Maya Dagon <mdagon@cisco.com> | |||
#ifdef HAVE_CONFIG_H | #ifdef HAVE_CONFIG_H | |||
#include "config.h" | #include "config.h" | |||
#endif | #endif | |||
#include "../http2_enum.h" | #include "../http2_enum.h" | |||
using namespace Http2Enums; | ||||
#include "../http2_hpack_int_decode.h" | #include "../http2_hpack_int_decode.h" | |||
#include "../http2_varlen_int_decode_impl.h" | ||||
#include <CppUTest/CommandLineTestRunner.h> | #include <CppUTest/CommandLineTestRunner.h> | |||
#include <CppUTest/TestHarness.h> | #include <CppUTest/TestHarness.h> | |||
#include <CppUTestExt/MockSupport.h> | #include <CppUTestExt/MockSupport.h> | |||
namespace snort | namespace snort | |||
{ | { | |||
// Stubs whose sole purpose is to make the test code link | // Stubs whose sole purpose is to make the test code link | |||
int DetectionEngine::queue_event(unsigned int, unsigned int) { return 0; } | int DetectionEngine::queue_event(unsigned int, unsigned int) { return 0; } | |||
} | } | |||
using namespace Http2Enums; | ||||
// | // | |||
// The following tests should result in a successful decode, no infractions/even ts | // The following tests should result in a successful decode, no infractions/even ts | |||
// | // | |||
TEST_GROUP(http2_hpack_int_decode_success) | TEST_GROUP(http2_hpack_int_decode_success) | |||
{ | { | |||
Http2EventGen events; | Http2EventGen events; | |||
Http2Infractions inf; | Http2Infractions inf; | |||
Http2HpackIntDecode* const decode = new Http2HpackIntDecode(5); | Http2HpackIntDecode* const decode = new Http2HpackIntDecode(5); | |||
void teardown() override | void teardown() override | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added |