| 46 | protected: |
| 47 | |
| 48 | virtual void SetUp() { |
| 49 | home = getenv("srcdir"); |
| 50 | if (home == NULL) { |
| 51 | fprintf(stderr, "This program needs environment variable 'srcdir' set."); |
| 52 | exit(EXIT_FAILURE); |
| 53 | } |
| 54 | |
| 55 | cfg = htp_config_create(); |
| 56 | htp_config_set_server_personality(cfg, HTP_SERVER_APACHE_2); |
| 57 | htp_config_register_urlencoded_parser(cfg); |
| 58 | htp_config_register_multipart_parser(cfg); |
| 59 | } |
| 60 | |
| 61 | virtual void TearDown() { |
| 62 | htp_connp_destroy_all(connp); |
nothing calls this directly
no test coverage detected