This func is called by us from mytest_handler to test TSHttpTxnServerReqGet
| 3387 | |
| 3388 | // This func is called by us from mytest_handler to test TSHttpTxnServerReqGet |
| 3389 | static int |
| 3390 | checkHttpTxnServerReqGet(SocketTest *test, void *data) |
| 3391 | { |
| 3392 | TSMBuffer bufp; |
| 3393 | TSMLoc mloc; |
| 3394 | TSHttpTxn txnp = static_cast<TSHttpTxn>(data); |
| 3395 | |
| 3396 | if (TSHttpTxnServerReqGet(txnp, &bufp, &mloc) != TS_SUCCESS) { |
| 3397 | test->test_server_req_get = false; |
| 3398 | SDK_RPRINT(test->regtest, "TSHttpTxnServerReqGet", "TestCase1", TC_FAIL, "Unable to get handle to server request"); |
| 3399 | return TS_EVENT_CONTINUE; |
| 3400 | } |
| 3401 | |
| 3402 | if ((bufp == reinterpret_cast<TSMBuffer>(&((HttpSM *)txnp)->t_state.hdr_info.server_request)) && |
| 3403 | (mloc == reinterpret_cast<TSMLoc>(((HttpSM *)txnp)->t_state.hdr_info.server_request.m_http))) { |
| 3404 | test->test_server_req_get = true; |
| 3405 | SDK_RPRINT(test->regtest, "TSHttpTxnServerReqGet", "TestCase1", TC_PASS, "ok"); |
| 3406 | } else { |
| 3407 | test->test_server_req_get = false; |
| 3408 | SDK_RPRINT(test->regtest, "TSHttpTxnServerReqGet", "TestCase1", TC_FAIL, "Value's Mismatch"); |
| 3409 | } |
| 3410 | |
| 3411 | return TS_EVENT_CONTINUE; |
| 3412 | } |
| 3413 | |
| 3414 | // This func is called by us from mytest_handler to test TSHttpTxnServerRespGet |
| 3415 | static int |
no test coverage detected