summaryrefslogtreecommitdiff
path: root/test/call.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/call.c')
-rw-r--r--test/call.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/call.c b/test/call.c
index e3cfa8d..f3881c6 100644
--- a/test/call.c
+++ b/test/call.c
@@ -62,7 +62,7 @@ struct fixture {
f->magic = MAGIC; \
f->exp_estab = 1; \
f->exp_closed = 1; \
- aucodec_register(baresip_aucodecl(), &dummy_pcma); \
+ mock_aucodec_register(); \
\
err = ua_alloc(&f->a.ua, \
"A <sip:a:xxx@127.0.0.1>;regint=0" prm); \
@@ -92,7 +92,7 @@ struct fixture {
mem_deref(f->b.ua); \
mem_deref(f->a.ua); \
\
- aucodec_unregister(&dummy_pcma); \
+ mock_aucodec_unregister(); \
\
uag_event_unregister(event_handler); \
\
@@ -106,15 +106,6 @@ struct fixture {
} while (0)
-static struct aucodec dummy_pcma = {
- .pt = "8",
- .name = "PCMA",
- .srate = 8000,
- .crate = 8000,
- .ch = 1,
-};
-
-
static void event_handler(struct ua *ua, enum ua_event ev,
struct call *call, const char *prm, void *arg)
{