Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gupnp-av
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gupnp-av
Commits
fa0cb425
Commit
fa0cb425
authored
Feb 01, 2014
by
Jens Georg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add testcase for bgo705564#c12
Signed-off-by:
Jens Georg
<
mail@jensge.org
>
parent
6ed170d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
tests/gtest/test-regression.c
tests/gtest/test-regression.c
+32
-0
No files found.
tests/gtest/test-regression.c
View file @
fa0cb425
...
...
@@ -41,6 +41,17 @@
" </item>" \
"</DIDL-Lite>"
#define TEST_DIDL_BGO705564 \
"<DIDL-Lite xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\" " \
"xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\" " \
"xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\">" \
"<item>" \
"<upnp:albumArtURI dlna:profileID=\"JPEG_TN\">" \
"http://example.com/album.jpg"\
"</upnp:albumArtURI>"\
"</item>" \
"</DIDL-Lite>"
static
void
test_bgo674319_on_object_available
(
G_GNUC_UNUSED
GUPnPDIDLLiteParser
*
parser
,
GUPnPDIDLLiteObject
*
object
,
...
...
@@ -90,6 +101,26 @@ test_bgo687462 (void)
g_assert
(
gupnp_didl_lite_object_get_album_art
(
object
)
==
NULL
);
}
static
void
test_bgo705564
(
void
)
{
GUPnPDIDLLiteWriter
*
writer
;
GUPnPDIDLLiteObject
*
object
;
char
*
xml
;
writer
=
gupnp_didl_lite_writer_new
(
NULL
);
object
=
(
GUPnPDIDLLiteObject
*
)
gupnp_didl_lite_writer_add_item
(
writer
);
gupnp_didl_lite_object_set_album_art
(
object
,
"http://example.com/album.jpg"
);
xml
=
gupnp_didl_lite_writer_get_string
(
writer
);
g_assert_cmpstr
(
xml
,
==
,
TEST_DIDL_BGO705564
);
g_free
(
xml
);
g_object_unref
(
object
);
g_object_unref
(
writer
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
#if !GLIB_CHECK_VERSION (2, 35, 0)
...
...
@@ -99,6 +130,7 @@ int main (int argc, char *argv[])
g_test_add_func
(
"/bugs/gnome/674319"
,
test_bgo674319
);
g_test_add_func
(
"/bugs/gnome/687462"
,
test_bgo687462
);
g_test_add_func
(
"/bugs/gnome/705564"
,
test_bgo705564
);
g_test_run
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment