From 698c3e55cdb4ea4f9956835aedaa22fddb0562c3 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 16 Dec 2015 10:58:52 +0100 Subject: [PATCH] Added vcard tester (currently empty) --- tester/Makefile.am | 1 + tester/liblinphone_tester.h | 1 + tester/tester.c | 1 + tester/vcard_tester.c | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 tester/vcard_tester.c diff --git a/tester/Makefile.am b/tester/Makefile.am index 40dabb7e2..b330714eb 100644 --- a/tester/Makefile.am +++ b/tester/Makefile.am @@ -135,6 +135,7 @@ liblinphonetester_la_SOURCES = \ tester.c \ upnp_tester.c \ video_tester.c \ + vcard_tester.c \ common/bc_tester_utils.c liblinphonetester_ladir = $(includedir)/linphone diff --git a/tester/liblinphone_tester.h b/tester/liblinphone_tester.h index 4cbe28046..cd51b4772 100644 --- a/tester/liblinphone_tester.h +++ b/tester/liblinphone_tester.h @@ -53,6 +53,7 @@ extern test_suite_t video_test_suite; extern test_suite_t multicast_call_test_suite; extern test_suite_t multi_call_test_suite; extern test_suite_t proxy_config_test_suite; +extern test_suite_t vcard_test_suite; #if HAVE_SIPP extern test_suite_t complex_sip_call_test_suite; #endif diff --git a/tester/tester.c b/tester/tester.c index ad3380993..ad97955e9 100644 --- a/tester/tester.c +++ b/tester/tester.c @@ -473,6 +473,7 @@ void liblinphone_tester_add_suites() { #if HAVE_SIPP bc_tester_add_suite(&complex_sip_call_test_suite); #endif + bc_tester_add_suite(&vcard_test_suite); } static int linphone_core_manager_get_max_audio_bw_base(const int array[],int array_size) { diff --git a/tester/vcard_tester.c b/tester/vcard_tester.c new file mode 100644 index 000000000..21e38d2d3 --- /dev/null +++ b/tester/vcard_tester.c @@ -0,0 +1,32 @@ +/* + vcard_tester.c + Copyright (C) 2015 Belledonne Communications SARL + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + + +#include "linphonecore.h" +#include "private.h" +#include "liblinphone_tester.h" + +test_t vcard_tests[] = { + +}; + +test_suite_t vcard_test_suite = { + "VCard", NULL, NULL, + liblinphone_tester_before_each, liblinphone_tester_after_each, + sizeof(vcard_tests) / sizeof(vcard_tests[0]), vcard_tests +};