Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
29f2a31a
authored
Sep 02, 2020
by
christosts
Committed by
Oliver Woodman
Sep 07, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Re-enable ignored unit tests
PiperOrigin-RevId: 329675833
parent
f31411b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
library/core/src/test/java/com/google/android/exoplayer2/mediacodec/AsynchronousMediaCodecBufferEnqueuerTest.java
library/core/src/test/java/com/google/android/exoplayer2/mediacodec/AsynchronousMediaCodecBufferEnqueuerTest.java
View file @
29f2a31a
...
...
@@ -21,6 +21,7 @@ import static org.junit.Assert.assertThrows;
import
static
org
.
mockito
.
Mockito
.
doAnswer
;
import
android.media.MediaCodec
;
import
android.media.MediaFormat
;
import
android.os.HandlerThread
;
import
android.os.Looper
;
import
androidx.test.ext.junit.runners.AndroidJUnit4
;
...
...
@@ -31,7 +32,6 @@ import java.io.IOException;
import
java.util.concurrent.atomic.AtomicLong
;
import
org.junit.After
;
import
org.junit.Before
;
import
org.junit.Ignore
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
...
...
@@ -54,6 +54,8 @@ public class AsynchronousMediaCodecBufferEnqueuerTest {
@Before
public
void
setUp
()
throws
IOException
{
codec
=
MediaCodec
.
createByCodecName
(
"h264"
);
codec
.
configure
(
new
MediaFormat
(),
/* surface= */
null
,
/* crypto= */
null
,
/* flags= */
0
);
codec
.
start
();
handlerThread
=
new
TestHandlerThread
(
"TestHandlerThread"
);
enqueuer
=
new
AsynchronousMediaCodecBufferEnqueuer
(
codec
,
handlerThread
,
mockConditionVariable
);
...
...
@@ -62,7 +64,8 @@ public class AsynchronousMediaCodecBufferEnqueuerTest {
@After
public
void
tearDown
()
{
enqueuer
.
shutdown
();
codec
.
stop
();
codec
.
release
();
assertThat
(
TestHandlerThread
.
INSTANCES_STARTED
.
get
()).
isEqualTo
(
0
);
}
...
...
@@ -98,7 +101,6 @@ public class AsynchronousMediaCodecBufferEnqueuerTest {
/* flags= */
0
));
}
@Ignore
@Test
public
void
queueInputBuffer_multipleTimes_limitsObjectsAllocation
()
{
enqueuer
.
start
();
...
...
@@ -159,7 +161,6 @@ public class AsynchronousMediaCodecBufferEnqueuerTest {
/* flags= */
0
));
}
@Ignore
@Test
public
void
queueSecureInputBuffer_multipleTimes_limitsObjectsAllocation
()
{
enqueuer
.
start
();
...
...
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