Commit 77b689ef authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3963] Add libxpat1 in CFLAGS and LDFLAGS and run an instantiation test

parent 14f7a2ee
......@@ -85,7 +85,8 @@ libsflphone_la_LDFLAGS = \
@SAMPLERATE_LIBS@ \
@libssl_LIBS@ \
@UUID_LIBS@ \
@yaml_LIBS@
@yaml_LIBS@ \
@xml_LIBS@
libsflphone_la_CFLAGS = \
@CCGNU2_CFLAGS@ \
......@@ -98,7 +99,8 @@ libsflphone_la_CFLAGS = \
@SAMPLERATE_CFLAGS@ \
@libssl_CFLAGS@ \
@UUID_CFLAGS@ \
@yaml_CFLAGS@
@yaml_CFLAGS@ \
@xml_CFLAGS@
libsflphone_la_SOURCES =
......
......@@ -34,6 +34,8 @@
#include "instantmessagingtest.h"
#include "expat.h"
#define MAXIMUM_SIZE 10
#define DELIMITER_CHAR "\n\n"
......@@ -139,6 +141,12 @@ void InstantMessagingTest::testSplitMessage ()
CPPUNIT_ASSERT (messages[size- 1] == very_long_message.substr (maxSize * (size-1)));
}
void InstantMessagingTest::testUriListParsing ()
{
XML_Parser parser = XML_ParserCreate(NULL);
XML_ParserFree(parser);
}
void InstantMessagingTest::tearDown()
{
delete _im;
......
......@@ -56,6 +56,7 @@ class InstantMessagingTest : public CppUnit::TestCase {
CPPUNIT_TEST (testSaveSingleMessage);
CPPUNIT_TEST (testSaveMultipleMessage);
CPPUNIT_TEST (testSplitMessage);
CPPUNIT_TEST (testUriListParsing);
CPPUNIT_TEST_SUITE_END();
public:
......@@ -78,6 +79,8 @@ class InstantMessagingTest : public CppUnit::TestCase {
void testSaveMultipleMessage ();
void testSplitMessage ();
void testUriListParsing ();
private:
sfl::InstantMessaging *_im;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment