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
e91b6fac
Commit
e91b6fac
authored
Jul 31, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jvlc: minor changes on unit tests
parent
5eab7541
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
22 deletions
+14
-22
bindings/java/core/src/test/java/org/videolan/jvlc/AbstractJVLCTest.java
...ore/src/test/java/org/videolan/jvlc/AbstractJVLCTest.java
+2
-1
bindings/java/core/src/test/java/org/videolan/jvlc/internal/AbstractVLCInternalTest.java
...a/org/videolan/jvlc/internal/AbstractVLCInternalTest.java
+8
-3
bindings/java/core/src/test/java/org/videolan/jvlc/internal/MediaListPlayerTest.java
.../java/org/videolan/jvlc/internal/MediaListPlayerTest.java
+4
-18
No files found.
bindings/java/core/src/test/java/org/videolan/jvlc/AbstractJVLCTest.java
View file @
e91b6fac
...
...
@@ -57,7 +57,8 @@ public abstract class AbstractJVLCTest
@Before
public
void
testSetup
()
{
jvlc
=
new
JVLC
(
"-vvv --ignore-config --no-media-library -I dummy --aout=dummy --vout=dummy --rtsp-host 127.0.0.1:5554"
);
jvlc
=
new
JVLC
(
"-vvv --ignore-config --no-media-library -I dummy -A dummy -V dummy --rtsp-host 127.0.0.1:5554"
);
jvlc
.
setLogVerbosity
(
LoggerVerbosityLevel
.
DEBUG
);
downloadSample
();
}
...
...
bindings/java/core/src/test/java/org/videolan/jvlc/internal/AbstractVLCInternalTest.java
View file @
e91b6fac
...
...
@@ -65,15 +65,20 @@ public abstract class AbstractVLCInternalTest
public
void
testSetup
()
{
exception
=
new
libvlc_exception_t
();
libvlcInstance
=
libvlc
.
libvlc_new
(
0
,
new
String
[]{
String
[]
args
=
new
String
[]{
"-vvv"
,
"--ignore-config"
,
"--reset-plugins-cache"
,
"--no-media-library"
,
"-I"
,
"dummy"
,
"--aout=dummy"
,
"--vout=dummy"
},
exception
);
"-A"
,
"dummy"
,
"-V"
,
"dummy"
};
libvlcInstance
=
libvlc
.
libvlc_new
(
args
.
length
,
args
,
exception
);
libvlc
.
libvlc_exception_clear
(
exception
);
downloadSample
();
}
...
...
bindings/java/core/src/test/java/org/videolan/jvlc/internal/MediaListPlayerTest.java
View file @
e91b6fac
...
...
@@ -37,6 +37,7 @@ import org.videolan.jvlc.internal.LibVlc.libvlc_exception_t;
public
class
MediaListPlayerTest
extends
AbstractVLCInternalTest
{
@Test
public
void
mediaListPlayerNewTest
()
{
...
...
@@ -97,7 +98,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
/**
* this fails: see https://trac.videolan.org/vlc/ticket/1527
*/
//
@Test
@Test
public
void
mediaListPlayerPlay
()
{
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
...
...
@@ -166,9 +167,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
}
Thread
.
sleep
(
150
);
}
// FIXME give stats the time to run... there's probably a race condition in misc/stats.c:259 that
// needs to be fixed
// Thread.sleep(400);
Thread
.
sleep
(
400
);
libvlc
.
libvlc_media_list_player_stop
(
mediaListPlayer
,
exception
);
libvlc
.
libvlc_media_list_release
(
mediaList
);
libvlc
.
libvlc_media_list_player_release
(
mediaListPlayer
);
...
...
@@ -208,20 +207,7 @@ public class MediaListPlayerTest extends AbstractVLCInternalTest
Thread
.
sleep
(
150
);
}
libvlc
.
libvlc_media_list_player_pause
(
mediaListPlayer
,
exception
);
Assert
.
assertEquals
(
exception
.
message
,
0
,
exception
.
raised
);
while
(
true
)
{
int
playing
=
libvlc
.
libvlc_media_list_player_is_playing
(
mediaListPlayer
,
exception
);
if
(
exception
.
raised
==
1
)
{
throw
new
RuntimeException
(
"Native exception thrown"
);
}
if
(
playing
==
0
)
{
break
;
}
Thread
.
sleep
(
150
);
}
int
state
=
libvlc
.
libvlc_media_list_player_get_state
(
mediaListPlayer
,
exception
);
Assert
.
assertEquals
(
exception
.
message
,
0
,
exception
.
raised
);
Assert
.
assertEquals
(
...
...
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