Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-2-2
Commits
72d14823
Commit
72d14823
authored
Mar 15, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
media list count unit test added
parent
ce42723b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
bindings/java/core/src/test/java/org/videolan/jvlc/internal/MediaListTest.java
...c/test/java/org/videolan/jvlc/internal/MediaListTest.java
+18
-0
No files found.
bindings/java/core/src/test/java/org/videolan/jvlc/internal/MediaListTest.java
View file @
72d14823
...
...
@@ -74,4 +74,22 @@ public class MediaListTest
libvlc
.
libvlc_media_list_add_media_descriptor
(
mediaList
,
libvlc_media_descriptor
,
exception
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
}
@Test
public
void
mediaListCountTest
()
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
LibVlcMediaList
mediaList
=
libvlc
.
libvlc_media_list_new
(
libvlcInstance
,
exception
);
String
mrl
=
this
.
getClass
().
getResource
(
"/raffa_voice.ogg"
).
getPath
();
LibVlcMediaDescriptor
libvlc_media_descriptor
=
libvlc
.
libvlc_media_descriptor_new
(
libvlcInstance
,
mrl
,
exception
);
libvlc
.
libvlc_media_list_add_media_descriptor
(
mediaList
,
libvlc_media_descriptor
,
exception
);
int
result
=
libvlc
.
libvlc_media_list_count
(
mediaList
,
exception
);
Assert
.
assertEquals
(
1
,
result
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
libvlc
.
libvlc_media_list_add_media_descriptor
(
mediaList
,
libvlc_media_descriptor
,
exception
);
result
=
libvlc
.
libvlc_media_list_count
(
mediaList
,
exception
);
Assert
.
assertEquals
(
2
,
result
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
}
}
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