summaryrefslogtreecommitdiff
path: root/test/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.h')
-rw-r--r--test/test.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/test.h b/test/test.h
index 20ccdcd..c88df56 100644
--- a/test/test.h
+++ b/test/test.h
@@ -83,12 +83,32 @@ int sip_server_uri(struct sip_server *srv, char *uri, size_t sz,
enum sip_transp tp);
+/*
+ * Mock DNS-Server
+ */
+
+struct dns_server {
+ struct udp_sock *us;
+ struct sa addr;
+ struct list rrl;
+ bool rotate;
+};
+
+int dns_server_alloc(struct dns_server **srvp, bool rotate);
+int dns_server_add_a(struct dns_server *srv,
+ const char *name, uint32_t addr);
+int dns_server_add_srv(struct dns_server *srv, const char *name,
+ uint16_t pri, uint16_t weight, uint16_t port,
+ const char *target);
+
+
/* test cases */
int test_cmd(void);
int test_ua_alloc(void);
int test_uag_find_param(void);
int test_ua_register(void);
+int test_ua_register_dns(void);
int test_mos(void);
int test_call_answer(void);