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
09d43114
authored
Jan 03, 2023
by
kimvde
Committed by
Marc Baechinger
Jan 04, 2023
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove unnecessary exceptions in tests
PiperOrigin-RevId: 499160043
parent
220a5b9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
library/transformer/src/test/java/com/google/android/exoplayer2/transformer/TransformerEndToEndTest.java
library/transformer/src/test/java/com/google/android/exoplayer2/transformer/TransformerEndToEndTest.java
View file @
09d43114
...
...
@@ -325,7 +325,7 @@ public final class TransformerEndToEndTest {
}
@Test
public
void
startTransformation_withMultipleListeners_callsEachOnError
()
throws
Exception
{
public
void
startTransformation_withMultipleListeners_callsEachOnError
()
{
Transformer
.
Listener
mockListener1
=
mock
(
Transformer
.
Listener
.
class
);
Transformer
.
Listener
mockListener2
=
mock
(
Transformer
.
Listener
.
class
);
Transformer
.
Listener
mockListener3
=
mock
(
Transformer
.
Listener
.
class
);
...
...
@@ -428,8 +428,7 @@ public final class TransformerEndToEndTest {
}
@Test
public
void
startTransformation_withAudioEncoderFormatUnsupported_completesWithError
()
throws
Exception
{
public
void
startTransformation_withAudioEncoderFormatUnsupported_completesWithError
()
{
Transformer
transformer
=
createTransformerBuilder
(
/* enableFallback= */
false
)
.
setTransformationRequest
(
...
...
@@ -450,8 +449,7 @@ public final class TransformerEndToEndTest {
}
@Test
public
void
startTransformation_withAudioDecoderFormatUnsupported_completesWithError
()
throws
Exception
{
public
void
startTransformation_withAudioDecoderFormatUnsupported_completesWithError
()
{
Transformer
transformer
=
createTransformerBuilder
(
/* enableFallback= */
false
)
.
setTransformationRequest
(
...
...
@@ -471,7 +469,7 @@ public final class TransformerEndToEndTest {
}
@Test
public
void
startTransformation_withIoError_completesWithError
()
throws
Exception
{
public
void
startTransformation_withIoError_completesWithError
()
{
Transformer
transformer
=
createTransformerBuilder
(
/* enableFallback= */
false
).
build
();
MediaItem
mediaItem
=
MediaItem
.
fromUri
(
"asset:///non-existing-path.mp4"
);
...
...
@@ -527,7 +525,7 @@ public final class TransformerEndToEndTest {
}
@Test
public
void
startTransformation_withSlowOutputSampleRate_completesWithError
()
throws
Exception
{
public
void
startTransformation_withSlowOutputSampleRate_completesWithError
()
{
MediaSource
.
Factory
mediaSourceFactory
=
new
DefaultMediaSourceFactory
(
context
,
new
SlowExtractorsFactory
(
/* delayBetweenReadsMs= */
10
));
...
...
@@ -650,8 +648,7 @@ public final class TransformerEndToEndTest {
}
@Test
public
void
startTransformation_withAssetLoaderNotDecodingAndDecodingNeeded_completesWithError
()
throws
Exception
{
public
void
startTransformation_withAssetLoaderNotDecodingAndDecodingNeeded_completesWithError
()
{
Transformer
transformer
=
createTransformerBuilder
(
/* enableFallback= */
false
)
.
setAudioProcessors
(
ImmutableList
.
of
(
new
SonicAudioProcessor
()))
...
...
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