summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2013-12-14 15:31:08 +0100
committerJens Georg <mail@jensge.org>2014-06-10 12:49:41 +0200
commit456a9ceebcce41674a3acda8070e5ba94ee9ecc3 (patch)
tree6e303c44378649999716f6e83cb40c74a8a74468 /tests
parent655de6ecfa71d341e8782004f352de06fb6e3bca (diff)
downloadgupnp-av-456a9ceebcce41674a3acda8070e5ba94ee9ecc3.tar.gz
Lazy-create XML namespaces
https://bugzilla.gnome.org/show_bug.cgi?id=705564
Diffstat (limited to 'tests')
-rw-r--r--tests/gtest/test-media-collection.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/tests/gtest/test-media-collection.c b/tests/gtest/test-media-collection.c
index c7d98c7..930d872 100644
--- a/tests/gtest/test-media-collection.c
+++ b/tests/gtest/test-media-collection.c
@@ -32,7 +32,6 @@
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"" \
" xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\"" \
" xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\"" \
-" xmlns:pv=\"http://www.pv.com/pvns/\"" \
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" \
" xsi:schemaLocation=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" \
" http://www.upnp.org/schemas/av/didl-lite-v2-20060531.xsd" \
@@ -60,10 +59,9 @@
#define TEST_PARSE_COLLECTION_2 \
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>" \
"<DIDL-Lite" \
-" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"" \
" xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\"" \
+" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"" \
" xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\"" \
-" xmlns:pv=\"http://www.pv.com/pvns/\"" \
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" \
" xsi:schemaLocation=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" \
" http://www.upnp.org/schemas/av/didl-lite-v2-20060531.xsd" \
@@ -93,10 +91,9 @@
#define TEST_CREATE_FLAT \
"<DIDL-Lite " \
+ "xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\" " \
"xmlns:dc=\"http://purl.org/dc/elements/1.1/\" " \
- "xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\" " \
- "xmlns:pv=\"http://www.pv.com/pvns/\" " \
- "xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\">" \
+ "xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\">" \
"<item restricted=\"1\">" \
"<dc:title>Song1</dc:title>" \
"<upnp:class>object.item.audioItem</upnp:class>" \
@@ -116,10 +113,9 @@
#define TEST_CREATE_FULL \
"<DIDL-Lite " \
+ "xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\" " \
"xmlns:dc=\"http://purl.org/dc/elements/1.1/\" " \
- "xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\" " \
- "xmlns:pv=\"http://www.pv.com/pvns/\" " \
- "xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\">" \
+ "xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\">" \
"<container>" \
"<dc:title>TestCollection1</dc:title>" \
"<dc:creator>TestCollection1Author</dc:creator>" \
@@ -143,10 +139,9 @@
#define TEST_CREATE_FULL_REPARENT \
"<DIDL-Lite " \
+ "xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\" " \
"xmlns:dc=\"http://purl.org/dc/elements/1.1/\" " \
- "xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\" " \
- "xmlns:pv=\"http://www.pv.com/pvns/\" " \
- "xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\">" \
+ "xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\">" \
"<container>" \
"<item restricted=\"1\">" \
"<dc:title>Song1</dc:title>" \