| 783 | } |
| 784 | |
| 785 | class DecodingTest : public testing::Test { |
| 786 | protected: |
| 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 | |
| 811 | TEST_F(DecodingTest, DecodeUrlencodedInplace1_Identity) { |
| 812 | bstr *i = bstr_dup_c("/dest"); |
nothing calls this directly
no outgoing calls
no test coverage detected