Fix unit tests building, broken after the file-utils addition.
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 8 Oct 2018 08:34:08 +0000 (10:34 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 8 Oct 2018 08:34:08 +0000 (10:34 +0200)
src/common/tests/Makefile.am
src/common/tests/codeconv_test.c
src/common/tests/mock_prefs_common_get_flush_metadata.h [new file with mode: 0644]
src/common/tests/xml_test.c

index 7b18f88..e69e4ee 100644 (file)
@@ -12,11 +12,11 @@ AM_CPPFLAGS = \
 
 TEST_PROGS += xml_test
 xml_test_SOURCES = xml_test.c
-xml_test_LDADD = $(common_ldadd) ../xml.o ../stringtable.o ../utils.o ../codeconv.o ../quoted-printable.o ../unmime.o
+xml_test_LDADD = $(common_ldadd) ../xml.o ../stringtable.o ../utils.o ../codeconv.o ../quoted-printable.o ../unmime.o ../file-utils.o
 
 TEST_PROGS += codeconv_test
 codeconv_test_SOURCES = codeconv_test.c
-codeconv_test_LDADD = $(common_ldadd) ../codeconv.o ../utils.o ../quoted-printable.o ../unmime.o
+codeconv_test_LDADD = $(common_ldadd) ../codeconv.o ../utils.o ../quoted-printable.o ../unmime.o ../file-utils.o
 
 TEST_PROGS += md5_test
 md5_test_SOURCES = md5_test.c
index 3b93eae..3cf7437 100644 (file)
@@ -3,6 +3,7 @@
 #include "codeconv.h"
 
 #include "mock_prefs_common_get_use_shred.h"
+#include "mock_prefs_common_get_flush_metadata.h"
 
 struct td {
        gchar *pre; /* Input string */
diff --git a/src/common/tests/mock_prefs_common_get_flush_metadata.h b/src/common/tests/mock_prefs_common_get_flush_metadata.h
new file mode 100644 (file)
index 0000000..d9f6a12
--- /dev/null
@@ -0,0 +1,5 @@
+gboolean prefs_common_get_flush_metadata(void)
+{
+       return FALSE;
+}
+
index 1e58d8d..0159712 100644 (file)
@@ -3,6 +3,7 @@
 #include "xml.h"
 
 #include "mock_prefs_common_get_use_shred.h"
+#include "mock_prefs_common_get_flush_metadata.h"
 
 #define DATADIR "data/"