MCPcopy Create free account
hub / github.com/OISF/libhtp / DecodingTest

Class DecodingTest

test/test_utils.cpp:785–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785class DecodingTest : public testing::Test {
786protected:
787
788 virtual void SetUp() {
789 testing::Test::SetUp();
790
791 cfg = htp_config_create();
792 connp = htp_connp_create(cfg);
793 htp_connp_open(connp, "127.0.0.1", 32768, "127.0.0.1", 80, NULL);
794 tx = htp_connp_tx_create(connp);
795 }
796
797 virtual void TearDown() {
798 htp_connp_destroy_all(connp);
799 htp_config_destroy(cfg);
800
801 testing::Test::TearDown();
802 }
803
804 htp_connp_t *connp;
805
806 htp_cfg_t *cfg;
807
808 htp_tx_t *tx;
809};
810
811TEST_F(DecodingTest, DecodeUrlencodedInplace1_Identity) {
812 bstr *i = bstr_dup_c("/dest");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected