Commit fc3ae898 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

sip tests: using TEST_P() and TEST_SIZE().

darcs-hash:20061121190038-65a35-4753a9036ea7ab3d20b9f0a6baac3edd073ce11a.gz
parent 70558bec
......@@ -128,16 +128,16 @@ int test_url_headers(void)
t = sip_url_query_as_taglist(home, s, NULL); TEST_1(t);
TEST(t[0].t_tag, siptag_from); TEST_1(f = (void *)t[0].t_value);
TEST(t[1].t_tag, siptag_accept); TEST_1(ac = (void *)t[1].t_value);
TEST(t[2].t_tag, siptag_payload); TEST_1(body = (void *)t[2].t_value);
TEST(t[3].t_tag, siptag_accept);
TEST_P(t[0].t_tag, siptag_from); TEST_1(f = (void *)t[0].t_value);
TEST_P(t[1].t_tag, siptag_accept); TEST_1(ac = (void *)t[1].t_value);
TEST_P(t[2].t_tag, siptag_payload); TEST_1(body = (void *)t[2].t_value);
TEST_P(t[3].t_tag, siptag_accept);
s = "xyzzy=foo";
t = sip_url_query_as_taglist(home, s, NULL); TEST_1(t);
TEST(t[0].t_tag, siptag_header_str);
TEST_P(t[0].t_tag, siptag_header_str);
TEST_1(d = (void *)t[0].t_value);
TEST_S(d, "foo");
......@@ -209,7 +209,7 @@ int test_methods(void)
char const *result = NULL;
TEST(sip_version_d(&s, &result), 0);
TEST(s, end);
TEST_P(s, end);
TEST_S(result, "protocol/version");
}
......@@ -224,27 +224,27 @@ int test_methods(void)
char const *result = NULL;
s = udp; end = s + strlen(s);
TEST(sip_transport_d(&s, &result), 0); TEST(s, end);
TEST_SIZE(sip_transport_d(&s, &result), 0); TEST_P(s, end);
TEST_S(result, sip_transport_udp);
s = tcp; end = s + strlen(s);
TEST(sip_transport_d(&s, &result), 0); TEST(s, end);
TEST_SIZE(sip_transport_d(&s, &result), 0); TEST_P(s, end);
TEST_S(result, sip_transport_tcp);
s = tls; end = s + strlen(s);
TEST(sip_transport_d(&s, &result), 0); TEST(s, end);
TEST_SIZE(sip_transport_d(&s, &result), 0); TEST_P(s, end);
TEST_S(result, sip_transport_tls);
s = sctp; end = s + strlen(s);
TEST(sip_transport_d(&s, &result), 0); TEST(s, end);
TEST_SIZE(sip_transport_d(&s, &result), 0); TEST_P(s, end);
TEST_S(result, sip_transport_sctp);
s = dtls; end = s + strlen(s);
TEST(sip_transport_d(&s, &result), 0); TEST(s, end);
TEST_SIZE(sip_transport_d(&s, &result), 0); TEST_P(s, end);
TEST_S(result, "SIP/2.0/TLS-UDP");
s = tls_sctp; end = s + strlen(s);
TEST(sip_transport_d(&s, &result), 0); TEST(s, end);
TEST_SIZE(sip_transport_d(&s, &result), 0); TEST_P(s, end);
TEST_S(result, "SIP/2.0/TLS-SCTP");
}
END();
......@@ -360,22 +360,22 @@ int test_basic(void)
s = strcpy(buf, na);
TEST_1(sip_name_addr_d(home, &s, &display, url, &params, &comment) >= 0);
TEST(s, buf + strlen(na));
TEST_P(s, buf + strlen(na));
TEST_1(display);
TEST(url->url_type, url_tel);
TEST_1(params);
TEST_1(comment);
TEST(sip_name_addr_e(ebuf, sizeof(ebuf), 0, display, 0, url,
params, comment),
strlen(na) - 1);
TEST_SIZE(sip_name_addr_e(ebuf, sizeof(ebuf), 0, display, 0, url,
params, comment),
strlen(na) - 1);
TEST_1(strncmp(na, ebuf, strlen(na) - 1) == 0);
s = strcpy(buf, na2);
TEST_1(sip_name_addr_d(home, &s, &display, url, &params, &comment) >= 0);
TEST_S(s, "");
TEST(s, buf + strlen(na2));
TEST_P(s, buf + strlen(na2));
TEST_1(!display);
TEST(url->url_type, url_tel);
TEST_1(params);
......@@ -394,7 +394,7 @@ int test_basic(void)
TEST_1(sip_from_tag(home, f, "jxahudsf") == -1);
while (f->a_params && f->a_params[0])
msg_header_remove_param(f->a_common, f->a_params[0]);
TEST(f->a_tag, NULL);
TEST_P(f->a_tag, NULL);
TEST_1(sip_from_add_param(home, f, "test=1") == 0);
TEST_1(sip_from_tag(home, f, "jxahudsf") == 0);
TEST_S(f->a_tag, "jxahudsf");
......@@ -419,9 +419,9 @@ int test_basic(void)
TEST_S(t2->a_tag, "bar");
TEST(msg_header_remove_param(t->a_common, "tag"), 1);
TEST(t->a_tag, NULL);
TEST_P(t->a_tag, NULL);
TEST_1(sip_to_add_param(home, t, "tst=1") == 0);
TEST(t->a_tag, NULL);
TEST_P(t->a_tag, NULL);
su_free(home, t);
}
......@@ -544,7 +544,7 @@ int test_basic(void)
TEST_S(ra->af_duration, "13");
TEST_S(ra->af_comment, "foo");
TEST(msg_header_remove_param(ra->af_common, "duration"), 1);
TEST(ra->af_duration, NULL);
TEST_P(ra->af_duration, NULL);
s = sip_header_as_string(home, (void*)ra);
TEST_S(s, "50 (foo)");
......@@ -636,15 +636,15 @@ int test_basic(void)
TEST(msg_header_add_param(home, v->v_common, "rport"), 0);
TEST_S(v->v_rport, "");
TEST(msg_header_remove_param(v->v_common, "comp"), 1);
TEST(v->v_comp, NULL);
TEST_P(v->v_comp, NULL);
TEST(msg_header_remove_param(v->v_common, "ttl"), 1);
TEST(v->v_ttl, NULL);
TEST_P(v->v_ttl, NULL);
TEST(msg_header_remove_param(v->v_common, "maddr"), 1);
TEST(v->v_maddr, NULL);
TEST_P(v->v_maddr, NULL);
TEST(msg_header_remove_param(v->v_common, "rport"), 1);
TEST(v->v_rport, NULL);
TEST_P(v->v_rport, NULL);
TEST(msg_header_remove_param(v->v_common, "branch"), 1);
TEST(v->v_branch, NULL);
TEST_P(v->v_branch, NULL);
TEST_1(sip_via_add_param(home, v, "video=FALSE") == 0);
TEST_1(sip_via_add_param(home, v, NULL) == -1);
......@@ -678,7 +678,7 @@ int test_basic(void)
TEST_1(ci->ci_purpose != ci0->ci_purpose);
TEST(msg_header_remove_param(ci->ci_common, "purpose"), 1);
TEST(ci->ci_purpose, NULL);
TEST_P(ci->ci_purpose, NULL);
su_free(home, ci);
su_free(home, ci0);
......@@ -724,7 +724,7 @@ int test_sip_msg_class(msg_mclass_t const *mc)
/* Short form */
if (hc->hc_short[0])
TEST(mc->mc_short[hc->hc_short[0] - 'a'].hr_class, hc);
TEST_P(mc->mc_short[hc->hc_short[0] - 'a'].hr_class, hc);
/* Long form */
j = msg_header_name_hash(hc->hc_name, NULL);
......@@ -841,7 +841,7 @@ static int test_encoding(void)
TEST_1(h1 = msg_header_dup(home, h));
n = msg_header_e(b, sizeof b, h1, 0);
TEST(n, h->sh_len);
TEST_SIZE(n, h->sh_len);
TEST_M(b, h->sh_data, n);
su_free(home, h1);
}
......@@ -901,7 +901,7 @@ static int test_encoding(void)
TEST_1(h1 = sip_header_dup(home, h));
n = sip_header_e(b, sizeof b, h1, 0);
TEST(n, h->sh_len);
TEST_SIZE(n, h->sh_len);
TEST_M(b, h->sh_data, n);
su_free(home, h1);
}
......@@ -957,13 +957,13 @@ static int test_encoding(void)
TEST_M(c->h_data, "v:SIP/2.0/UDP 135.180.130.133,SIP/2.0/UDP 135.180.130.130:5060\r\n", c->h_len);
TEST_1(c = sip->sip_via->v_next->v_common);
TEST(c->h_len, 0); TEST_1(c->h_data);
TEST_SIZE(c->h_len, 0); TEST_1(c->h_data);
TEST_1(c = sip->sip_record_route->r_common);
TEST_M(c->h_data, "Record-Route:<sip:135.180.130.133;lr>,<sip:135.180.130.130;lr>\r\n", c->h_len);
TEST_1(c = sip->sip_record_route->r_next->r_common);
TEST(c->h_len, 0); TEST_1(c->h_data);
TEST_SIZE(c->h_len, 0); TEST_1(c->h_data);
TEST_1(c = sip->sip_content_length->l_common);
TEST_M(c->h_data, "l:0\r\n", c->h_len);
......@@ -1011,14 +1011,14 @@ int tag_test(void)
xtra += XTRA(xtra, via);
xtra += SU_ALIGN(xtra) + sizeof(*url) + url_xtra(url);
TEST(tl_len(lst), 5 * sizeof(tagi_t));
TEST(tl_xtra(lst, 0), xtra);
TEST_SIZE(tl_len(lst), 5 * sizeof(tagi_t));
TEST_SIZE(tl_xtra(lst, 0), xtra);
dup = tl_adup(NULL, lst);
TEST(dup != NULL, 1);
TEST(tl_len(dup), 5 * sizeof(tagi_t));
TEST(tl_xtra(dup, 0), xtra);
TEST_SIZE(tl_len(dup), 5 * sizeof(tagi_t));
TEST_SIZE(tl_xtra(dup, 0), xtra);
if (tstflags & tst_verbatim)
tl_print(stdout, "dup:\n", dup);
......@@ -1057,7 +1057,7 @@ static int parser_tag_test(void)
BEGIN();
home = su_home_create();
home = su_home_new(sizeof *home);
msg = read_message(MSG_DO_EXTRACT_COPY,
"SIP/2.0 401 Unauthorized\r\n"
......@@ -1080,7 +1080,7 @@ static int parser_tag_test(void)
sip = sip_object(msg);
TEST_1(home && msg && sip);
TEST(sip->sip_size, sizeof *sip);
TEST_SIZE(sip->sip_size, sizeof *sip);
TEST_1(sip_is_status((sip_header_t *)sip->sip_status));
TEST_1(sip_is_via((sip_header_t *)sip->sip_via));
......@@ -1097,7 +1097,7 @@ static int parser_tag_test(void)
TEST_1(sip_is_content_length((sip_header_t *)sip->sip_content_length));
TEST(sip->sip_content_length->l_common->h_succ, sip->sip_separator);
TEST_P(sip->sip_content_length->l_common->h_succ, sip->sip_separator);
lst = tl_list(SIPTAG_VIA(sip->sip_via),
SIPTAG_RECORD_ROUTE(sip->sip_record_route),
......@@ -1130,38 +1130,38 @@ static int parser_tag_test(void)
TEST_1(lst && filter1 && filter2 && filter3 && filter4);
b1 = tl_afilter(home, filter1, lst);
TEST(tl_len(b1), 2 * sizeof(tagi_t));
TEST_SIZE(tl_len(b1), 2 * sizeof(tagi_t));
TEST_1(((sip_via_t *)b1->t_value)->v_next);
xtra = sip_header_size((sip_header_t *)sip->sip_via);
xtra += SU_ALIGN(xtra);
xtra += sip_header_size((sip_header_t *)sip->sip_via->v_next);
TEST(tl_xtra(b1, 0), xtra);
TEST_SIZE(tl_xtra(b1, 0), xtra);
dup = tl_adup(home, lst);
TEST(tl_len(dup), tl_len(lst));
TEST(tl_xtra(dup, 0), tl_xtra(lst, 0));
TEST_SIZE(tl_len(dup), tl_len(lst));
TEST_SIZE(tl_xtra(dup, 0), tl_xtra(lst, 0));
tl_vfree(lst);
lst = tl_list(SIPTAG_SIP(sip), TAG_NULL());
b2 = tl_afilter(home, filter2, lst);
TEST(tl_len(b2), 4 * sizeof(tagi_t));
TEST_SIZE(tl_len(b2), 4 * sizeof(tagi_t));
xtra = 0;
xtra += XTRA(xtra, sip->sip_call_id);
xtra += XTRA(xtra, sip->sip_from);
xtra += XTRA(xtra, sip->sip_cseq);
TEST(tl_xtra(b2, 0), xtra);
TEST_SIZE(tl_xtra(b2, 0), xtra);
b3 = tl_afilter(home, filter3, lst);
TEST(tl_len(b3), 3 * sizeof(tagi_t));
TEST(tl_xtra(b3, 0),
sizeof(sip_content_length_t) + sizeof(sip_cseq_t));
TEST_SIZE(tl_len(b3), 3 * sizeof(tagi_t));
TEST_SIZE(tl_xtra(b3, 0),
sizeof(sip_content_length_t) + sizeof(sip_cseq_t));
b4 = tl_afilter(home, filter4, lst);
TEST(tl_len(b4), 11 * sizeof(tagi_t));
TEST_SIZE(tl_len(b4), 11 * sizeof(tagi_t));
xtra = 0;
xtra += XTRA(xtra, sip->sip_status);
xtra += XTRA(xtra, sip->sip_via);
......@@ -1174,7 +1174,7 @@ static int parser_tag_test(void)
xtra += XTRA(xtra, sip->sip_www_authenticate);
xtra += XTRA(xtra, sip->sip_proxy_authenticate);
xtra += XTRA(xtra, sip->sip_content_length);
TEST(tl_xtra(b4, 0), xtra);
TEST_SIZE(tl_xtra(b4, 0), xtra);
tl_vfree(filter1); tl_vfree(filter2); tl_vfree(filter3); tl_vfree(filter4);
tl_vfree(lst);
......@@ -1189,7 +1189,7 @@ static int parser_tag_test(void)
su_home_check(home);
su_home_destroy(home), su_free(NULL, home);
su_home_unref(home);
msg_destroy(msg);
......@@ -1342,7 +1342,7 @@ static int parser_test(void)
BEGIN();
home = su_home_create();
home = su_home_new(sizeof *home);
msg = read_message(MSG_DO_EXTRACT_COPY,
"INVITE sip:John_Smith@tct.hut.fi SIP/2.0\r\n"
......@@ -1401,46 +1401,53 @@ static int parser_test(void)
#define msg_header_offset(msg, sip, h) \
_msg_header_offset(msg, (msg_pub_t *)sip, (msg_header_t *)h)
TEST(msg_header_offset(msg, sip, sip_request), &sip->sip_request);
TEST(msg_header_offset(msg, sip, sip_status), &sip->sip_status);
TEST(msg_header_offset(msg, sip, sip_unknown), &sip->sip_unknown);
TEST(msg_header_offset(msg, sip, sip_separator), &sip->sip_separator);
TEST(msg_header_offset(msg, sip, sip_payload), &sip->sip_payload);
TEST(msg_header_offset(msg, sip, sip_via), &sip->sip_via);
TEST(msg_header_offset(msg, sip, sip_route), &sip->sip_route);
TEST(msg_header_offset(msg, sip, sip_record_route), &sip->sip_record_route);
TEST(msg_header_offset(msg, sip, sip_max_forwards), &sip->sip_max_forwards);
TEST(msg_header_offset(msg, sip, sip_from), &sip->sip_from);
TEST(msg_header_offset(msg, sip, sip_to), &sip->sip_to);
TEST(msg_header_offset(msg, sip, sip_call_id), &sip->sip_call_id);
TEST(msg_header_offset(msg, sip, sip_cseq), &sip->sip_cseq);
TEST(msg_header_offset(msg, sip, sip_contact), &sip->sip_contact);
TEST_P(msg_header_offset(msg, sip, sip_request), &sip->sip_request);
TEST_P(msg_header_offset(msg, sip, sip_status), &sip->sip_status);
TEST_P(msg_header_offset(msg, sip, sip_unknown), &sip->sip_unknown);
TEST_P(msg_header_offset(msg, sip, sip_separator), &sip->sip_separator);
TEST_P(msg_header_offset(msg, sip, sip_payload), &sip->sip_payload);
TEST_P(msg_header_offset(msg, sip, sip_via), &sip->sip_via);
TEST_P(msg_header_offset(msg, sip, sip_route), &sip->sip_route);
TEST_P(msg_header_offset(msg, sip, sip_record_route),
&sip->sip_record_route);
TEST_P(msg_header_offset(msg, sip, sip_max_forwards),
&sip->sip_max_forwards);
TEST_P(msg_header_offset(msg, sip, sip_from), &sip->sip_from);
TEST_P(msg_header_offset(msg, sip, sip_to), &sip->sip_to);
TEST_P(msg_header_offset(msg, sip, sip_call_id), &sip->sip_call_id);
TEST_P(msg_header_offset(msg, sip, sip_cseq), &sip->sip_cseq);
TEST_P(msg_header_offset(msg, sip, sip_contact), &sip->sip_contact);
TEST(msg_header_offset(msg, sip, sip_expires), &sip->sip_expires);
TEST(msg_header_offset(msg, sip, sip_date), &sip->sip_date);
TEST(msg_header_offset(msg, sip, sip_retry_after), &sip->sip_retry_after);
TEST(msg_header_offset(msg, sip, sip_timestamp), &sip->sip_timestamp);
TEST(msg_header_offset(msg, sip, sip_subject), &sip->sip_subject);
TEST(msg_header_offset(msg, sip, sip_priority), &sip->sip_priority);
TEST_P(msg_header_offset(msg, sip, sip_expires), &sip->sip_expires);
TEST_P(msg_header_offset(msg, sip, sip_date), &sip->sip_date);
TEST_P(msg_header_offset(msg, sip, sip_retry_after), &sip->sip_retry_after);
TEST_P(msg_header_offset(msg, sip, sip_timestamp), &sip->sip_timestamp);
TEST_P(msg_header_offset(msg, sip, sip_subject), &sip->sip_subject);
TEST_P(msg_header_offset(msg, sip, sip_priority), &sip->sip_priority);
TEST(msg_header_offset(msg, sip, sip_call_info), &sip->sip_call_info);
TEST(msg_header_offset(msg, sip, sip_organization), &sip->sip_organization);
TEST(msg_header_offset(msg, sip, sip_server), &sip->sip_server);
TEST(msg_header_offset(msg, sip, sip_user_agent), &sip->sip_user_agent);
TEST(msg_header_offset(msg, sip, sip_in_reply_to), &sip->sip_in_reply_to);
TEST_P(msg_header_offset(msg, sip, sip_call_info), &sip->sip_call_info);
TEST_P(msg_header_offset(msg, sip, sip_organization),
&sip->sip_organization);
TEST_P(msg_header_offset(msg, sip, sip_server), &sip->sip_server);
TEST_P(msg_header_offset(msg, sip, sip_user_agent), &sip->sip_user_agent);
TEST_P(msg_header_offset(msg, sip, sip_in_reply_to), &sip->sip_in_reply_to);
TEST(msg_header_offset(msg, sip, sip_accept), &sip->sip_accept);
TEST(msg_header_offset(msg, sip, sip_accept_encoding), &sip->sip_accept_encoding);
TEST(msg_header_offset(msg, sip, sip_accept_language), &sip->sip_accept_language);
TEST(msg_header_offset(msg, sip, sip_session_expires), &sip->sip_session_expires);
TEST(msg_header_offset(msg, sip, sip_min_se), &sip->sip_min_se);
TEST_P(msg_header_offset(msg, sip, sip_accept), &sip->sip_accept);
TEST_P(msg_header_offset(msg, sip, sip_accept_encoding),
&sip->sip_accept_encoding);
TEST_P(msg_header_offset(msg, sip, sip_accept_language),
&sip->sip_accept_language);
TEST_P(msg_header_offset(msg, sip, sip_session_expires),
&sip->sip_session_expires);
TEST_P(msg_header_offset(msg, sip, sip_min_se), &sip->sip_min_se);
TEST(msg_header_offset(msg, sip, sip_allow), &sip->sip_allow);
TEST(msg_header_offset(msg, sip, sip_require), &sip->sip_require);
TEST(msg_header_offset(msg, sip, sip_proxy_require), &sip->sip_proxy_require);
TEST(msg_header_offset(msg, sip, sip_supported), &sip->sip_supported);
TEST(msg_header_offset(msg, sip, sip_unsupported), &sip->sip_unsupported);
TEST_P(msg_header_offset(msg, sip, sip_allow), &sip->sip_allow);
TEST_P(msg_header_offset(msg, sip, sip_require), &sip->sip_require);
TEST_P(msg_header_offset(msg, sip, sip_proxy_require),
&sip->sip_proxy_require);
TEST_P(msg_header_offset(msg, sip, sip_supported), &sip->sip_supported);
TEST_P(msg_header_offset(msg, sip, sip_unsupported), &sip->sip_unsupported);
#if SIP_HAVE_ENCRYPTION
TEST(msg_header_offset(msg, sip, sip_encryption), &sip->sip_encryption);
#endif
......@@ -1448,103 +1455,111 @@ static int parser_test(void)
TEST(msg_header_offset(msg, sip, sip_response_key), &sip->sip_response_key);
#endif
TEST(msg_header_offset(msg, sip, sip_proxy_authenticate), &sip->sip_proxy_authenticate);
TEST(msg_header_offset(msg, sip, sip_proxy_authorization), &sip->sip_proxy_authorization);
TEST(msg_header_offset(msg, sip, sip_authorization), &sip->sip_authorization);
TEST(msg_header_offset(msg, sip, sip_www_authenticate), &sip->sip_www_authenticate);
TEST(msg_header_offset(msg, sip, sip_error_info), &sip->sip_error_info);
TEST(msg_header_offset(msg, sip, sip_warning), &sip->sip_warning);
TEST_P(msg_header_offset(msg, sip, sip_proxy_authenticate),
&sip->sip_proxy_authenticate);
TEST_P(msg_header_offset(msg, sip, sip_proxy_authorization),
&sip->sip_proxy_authorization);
TEST_P(msg_header_offset(msg, sip, sip_authorization),
&sip->sip_authorization);
TEST_P(msg_header_offset(msg, sip, sip_www_authenticate),
&sip->sip_www_authenticate);
TEST_P(msg_header_offset(msg, sip, sip_error_info), &sip->sip_error_info);
TEST_P(msg_header_offset(msg, sip, sip_warning), &sip->sip_warning);
TEST(msg_header_offset(msg, sip, sip_mime_version), &sip->sip_mime_version);
TEST(msg_header_offset(msg, sip, sip_content_type), &sip->sip_content_type);
TEST(msg_header_offset(msg, sip, sip_content_encoding), &sip->sip_content_encoding);
TEST(msg_header_offset(msg, sip, sip_content_disposition), &sip->sip_content_disposition);
TEST(msg_header_offset(msg, sip, sip_content_length), &sip->sip_content_length);
TEST(sip_request_class->hc_params, 0);
TEST(sip_status_class->hc_params, 0);
TEST(sip_unknown_class->hc_params, 0);
TEST(sip_separator_class->hc_params, 0);
TEST(sip_payload_class->hc_params, 0);
TEST(sip_via_class->hc_params, offsetof(sip_via_t, v_params));
TEST(sip_route_class->hc_params, offsetof(sip_route_t, r_params));
TEST(sip_record_route_class->hc_params,
offsetof(sip_record_route_t, r_params));
TEST(sip_max_forwards_class->hc_params, 0);
TEST(sip_from_class->hc_params, offsetof(sip_from_t, a_params));
TEST(sip_to_class->hc_params, offsetof(sip_to_t, a_params));
TEST(sip_call_id_class->hc_params, 0);
TEST(sip_cseq_class->hc_params, 0);
TEST(sip_contact_class->hc_params, offsetof(sip_contact_t, m_params));
TEST_P(msg_header_offset(msg, sip, sip_mime_version), &sip->sip_mime_version);
TEST_P(msg_header_offset(msg, sip, sip_content_type), &sip->sip_content_type);
TEST_P(msg_header_offset(msg, sip, sip_content_encoding),
&sip->sip_content_encoding);
TEST_P(msg_header_offset(msg, sip, sip_content_disposition),
&sip->sip_content_disposition);
TEST_P(msg_header_offset(msg, sip, sip_content_length),
&sip->sip_content_length);
TEST_SIZE(sip_request_class->hc_params, 0);
TEST_SIZE(sip_status_class->hc_params, 0);
TEST_SIZE(sip_unknown_class->hc_params, 0);
TEST_SIZE(sip_separator_class->hc_params, 0);
TEST_SIZE(sip_payload_class->hc_params, 0);
TEST_SIZE(sip_via_class->hc_params, offsetof(sip_via_t, v_params));
TEST_SIZE(sip_route_class->hc_params, offsetof(sip_route_t, r_params));
TEST_SIZE(sip_record_route_class->hc_params,
offsetof(sip_record_route_t, r_params));
TEST_SIZE(sip_max_forwards_class->hc_params, 0);
TEST_SIZE(sip_from_class->hc_params, offsetof(sip_from_t, a_params));
TEST_SIZE(sip_to_class->hc_params, offsetof(sip_to_t, a_params));
TEST_SIZE(sip_call_id_class->hc_params, 0);
TEST_SIZE(sip_cseq_class->hc_params, 0);
TEST_SIZE(sip_contact_class->hc_params, offsetof(sip_contact_t, m_params));
TEST(sip_expires_class->hc_params, 0);
TEST(sip_date_class->hc_params, 0);
TEST(sip_retry_after_class->hc_params,
offsetof(sip_retry_after_t, af_params));
TEST(sip_timestamp_class->hc_params, 0);
TEST(sip_subject_class->hc_params, 0);
TEST(sip_priority_class->hc_params, 0);
TEST_SIZE(sip_expires_class->hc_params, 0);
TEST_SIZE(sip_date_class->hc_params, 0);
TEST_SIZE(sip_retry_after_class->hc_params,
offsetof(sip_retry_after_t, af_params));
TEST_SIZE(sip_timestamp_class->hc_params, 0);
TEST_SIZE(sip_subject_class->hc_params, 0);
TEST_SIZE(sip_priority_class->hc_params, 0);
TEST(sip_call_info_class->hc_params,
offsetof(sip_call_info_t, ci_params));
TEST(sip_organization_class->hc_params, 0);
TEST(sip_server_class->hc_params, 0);
TEST(sip_user_agent_class->hc_params, 0);
TEST(sip_in_reply_to_class->hc_params,
offsetof(sip_in_reply_to_t, k_items));
TEST(sip_accept_class->hc_params, offsetof(sip_accept_t, ac_params));
TEST(sip_accept_encoding_class->hc_params,
offsetof(sip_accept_encoding_t, aa_params));
TEST(sip_accept_language_class->hc_params,
offsetof(sip_accept_language_t, aa_params));
TEST_SIZE(sip_call_info_class->hc_params,
offsetof(sip_call_info_t, ci_params));
TEST_SIZE(sip_organization_class->hc_params, 0);
TEST_SIZE(sip_server_class->hc_params, 0);
TEST_SIZE(sip_user_agent_class->hc_params, 0);
TEST_SIZE(sip_in_reply_to_class->hc_params,
offsetof(sip_in_reply_to_t, k_items));
TEST_SIZE(sip_accept_class->hc_params, offsetof(sip_accept_t, ac_params));
TEST_SIZE(sip_accept_encoding_class->hc_params,
offsetof(sip_accept_encoding_t, aa_params));
TEST_SIZE(sip_accept_language_class->hc_params,
offsetof(sip_accept_language_t, aa_params));
TEST(sip_session_expires_class->hc_params, offsetof(sip_session_expires_t, x_params));
TEST(sip_min_se_class->hc_params, offsetof(sip_min_se_t, min_params));
TEST(sip_allow_class->hc_params, offsetof(sip_allow_t, k_items));
TEST(sip_require_class->hc_params, offsetof(sip_require_t, k_items));
TEST(sip_proxy_require_class->hc_params,
offsetof(sip_proxy_require_t, k_items));
TEST(sip_supported_class->hc_params,
offsetof(sip_supported_t, k_items));
TEST(sip_unsupported_class->hc_params,
offsetof(sip_unsupported_t, k_items));
TEST_SIZE(sip_session_expires_class->hc_params,
offsetof(sip_session_expires_t, x_params));
TEST_SIZE(sip_min_se_class->hc_params, offsetof(sip_min_se_t, min_params));
TEST_SIZE(sip_allow_class->hc_params, offsetof(sip_allow_t, k_items));
TEST_SIZE(sip_require_class->hc_params, offsetof(sip_require_t, k_items));
TEST_SIZE(sip_proxy_require_class->hc_params,
offsetof(sip_proxy_require_t, k_items));
TEST_SIZE(sip_supported_class->hc_params,
offsetof(sip_supported_t, k_items));
TEST_SIZE(sip_unsupported_class->hc_params,
offsetof(sip_unsupported_t, k_items));
#if SIP_HAVE_ENCRYPTION
TEST(sip_encryption_class->hc_params,
offsetof(sip_encryption_t, au_params));
TEST_SIZE(sip_encryption_class->hc_params,
offsetof(sip_encryption_t, au_params));
#endif
#if SIP_HAVE_RESPONSE_KEY
TEST(sip_response_key_class->hc_params,
offsetof(sip_response_key_t, au_params));
TEST_SIZE(sip_response_key_class->hc_params,
offsetof(sip_response_key_t, au_params));
#endif
TEST(sip_proxy_authenticate_class->hc_params,
offsetof(sip_proxy_authenticate_t, au_params));
TEST(sip_proxy_authorization_class->hc_params,
offsetof(sip_proxy_authorization_t, au_params));
TEST(sip_authorization_class->hc_params,
offsetof(sip_authorization_t, au_params));
TEST(sip_www_authenticate_class->hc_params,
offsetof(sip_www_authenticate_t, au_params));
TEST(sip_error_info_class->hc_params,
offsetof(sip_error_info_t, ei_params));
TEST(sip_warning_class->hc_params, 0);
TEST_SIZE(sip_proxy_authenticate_class->hc_params,
offsetof(sip_proxy_authenticate_t, au_params));
TEST_SIZE(sip_proxy_authorization_class->hc_params,
offsetof(sip_proxy_authorization_t, au_params));
TEST_SIZE(sip_authorization_class->hc_params,
offsetof(sip_authorization_t, au_params));
TEST_SIZE(sip_www_authenticate_class->hc_params,
offsetof(sip_www_authenticate_t, au_params));
TEST_SIZE(sip_error_info_class->hc_params,
offsetof(sip_error_info_t, ei_params));
TEST_SIZE(sip_warning_class->hc_params, 0);
TEST(sip_mime_version_class->hc_params, 0);
TEST(sip_content_type_class->hc_params,
offsetof(sip_content_type_t, c_params));
TEST(sip_content_encoding_class->hc_params,
offsetof(sip_content_encoding_t, k_items));
TEST(sip_content_disposition_class->hc_params,
offsetof(sip_content_disposition_t, cd_params));