From f5ea7411865c8d555174007f2045ff7821dc867f Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Sun, 28 Mar 2010 14:54:57 +0300 Subject: [PATCH] xml: make tests independent from purple --- src/core/Makefile.am | 4 ---- src/core/sipe-xml-tests.c | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/core/Makefile.am b/src/core/Makefile.am index e914aeb8..e21e9105 100644 --- a/src/core/Makefile.am +++ b/src/core/Makefile.am @@ -74,10 +74,6 @@ sipe_xml_tests_SOURCES = sipe-xml-tests.c sipe_xml_tests_CFLAGS = $(libsipe_core_la_CFLAGS) sipe_xml_tests_LDADD = libsipe_core.la sipe_xml_tests_LDFLAGS = $(LIBXML2_LIBS) $(GLIB_LIBS) -if SIPE_INCLUDE_PURPLE -sipe_xml_tests_LDADD += libsipe_core_purple.la -sipe_xml_tests_LDFLAGS += $(PURPLE_LIBS) -endif # disables "caching" of memory blocks in tests TESTS_ENVIRONMENT = G_SLICE="always-malloc" diff --git a/src/core/sipe-xml-tests.c b/src/core/sipe-xml-tests.c index 368bb98f..f4f3c011 100644 --- a/src/core/sipe-xml-tests.c +++ b/src/core/sipe-xml-tests.c @@ -34,6 +34,7 @@ #include "sipe-backend.h" #include "sipe-xml.h" #include "sipe-utils.h" +#include "uuid.h" /* stub functions for backend API */ void sipe_backend_debug(sipe_debug_level level, @@ -52,6 +53,13 @@ void sipe_backend_debug(sipe_debug_level level, const gchar *sipe_backend_network_ip_address(void) { return(NULL); } +char *sipe_get_epid(SIPE_UNUSED_PARAMETER const char *self_sip_uri, + SIPE_UNUSED_PARAMETER const char *hostname, + SIPE_UNUSED_PARAMETER const char *ip_address) +{ + return(NULL); +} + /* test helpers */ static guint succeeded = 0; static guint failed = 0; -- 2.11.4.GIT