Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
sofia-sip
Commits
11a72bb3
Commit
11a72bb3
authored
Nov 21, 2006
by
Pekka Pessi
Browse files
tport tests: using TEST_P() and TEST_SIZE().
darcs-hash:20061121185741-65a35-d41f73bf792953a4bd7b0553f01478a757ec6db6.gz
parent
17360776
Changes
1
Hide whitespace changes
Inline
Side-by-side
libsofia-sip-ua/tport/test_tport.c
View file @
11a72bb3
...
...
@@ -290,7 +290,7 @@ static int new_test_msg(tp_test_t *tt, msg_t **retval,
TEST_1
(
tst
=
msg_test_public
(
msg
));
TEST_1
(
home
=
msg_home
(
msg
));
TEST
(
msg_maxsize
(
msg
,
1024
+
N
*
len
),
0
);
TEST
_SIZE
(
msg_maxsize
(
msg
,
1024
+
N
*
len
),
0
);
TEST_1
(
rq
=
msg_request_make
(
home
,
"DO im:foo@faa "
TPORT_TEST_VERSION
));
TEST
(
msg_header_insert
(
msg
,
(
void
*
)
tst
,
(
msg_header_t
*
)
rq
),
0
);
...
...
@@ -803,7 +803,7 @@ static int tcp_test(tp_test_t *tt)
TEST
(
new_test_msg
(
tt
,
&
msg
,
ident
,
1
,
64
*
1024
),
0
);
TEST_1
(
tp
=
tport_tsend
(
tt
->
tt_tports
,
msg
,
tt
->
tt_tcp_name
,
TAG_END
()));
TEST_S
(
tport_name
(
tp
)
->
tpn_ident
,
"client"
);
TEST
(
tport_incref
(
tp
),
tp0
);
tport_decref
(
&
tp
);
TEST
_P
(
tport_incref
(
tp
),
tp0
);
tport_decref
(
&
tp
);
msg_destroy
(
msg
);
}
...
...
@@ -854,7 +854,7 @@ static int tcp_test(tp_test_t *tt)
TEST_1
(
!
new_test_msg
(
tt
,
&
msg
,
"tcp-last"
,
1
,
1024
));
TEST_1
(
tp
=
tport_tsend
(
tt
->
tt_tports
,
msg
,
tt
->
tt_tcp_name
,
TAG_END
()));
TEST_S
(
tport_name
(
tp
)
->
tpn_ident
,
"client"
);
TEST
(
tport_incref
(
tp
),
tp0
);
tport_decref
(
&
tp
);
TEST
_P
(
tport_incref
(
tp
),
tp0
);
tport_decref
(
&
tp
);
msg_destroy
(
msg
);
TEST
(
tport_test_run
(
tt
,
5
),
1
);
...
...
@@ -1353,8 +1353,8 @@ static int filter_test(tp_test_t *tt)
result
=
tl_afilter
(
home
,
tport_tags
,
lst
);
TEST_1
(
result
);
TEST
(
result
[
0
].
t_tag
,
tptag_ident
);
TEST
(
result
[
1
].
t_tag
,
tptag_ident
);
TEST
_P
(
result
[
0
].
t_tag
,
tptag_ident
);
TEST
_P
(
result
[
1
].
t_tag
,
tptag_ident
);
free
(
lst
);
su_home_deinit
(
home
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment