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
e4d7e5e7
authored
Apr 11, 2022
by
samrobinson
Committed by
Ian Baker
Apr 26, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Allow suppression of AssertionError in TransformerAndroidTestRunner.
PiperOrigin-RevId: 440952335
parent
7b78548e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
library/transformer/src/androidTest/java/com/google/android/exoplayer2/transformer/TransformerAndroidTestRunner.java
library/transformer/src/androidTest/java/com/google/android/exoplayer2/transformer/TransformerAndroidTestRunner.java
View file @
e4d7e5e7
...
...
@@ -94,8 +94,8 @@ public class TransformerAndroidTestRunner {
}
/**
* Sets whether t
he runner should suppress any {@link Exception} that occurs as a result of
*
post-transformation analysis,
such as SSIM calculation.
* Sets whether t
o suppress failures that occurs as a result of post-transformation analysis,
* such as SSIM calculation.
*
* <p>Regardless of this value, analysis exceptions are attached to the analysis file.
*
...
...
@@ -294,13 +294,17 @@ public class TransformerAndroidTestRunner {
// calculation, so it should be thrown, rather than processed as part of the
// TransformationTestResult.
throw
interruptedException
;
}
catch
(
Exception
analysisException
)
{
// Catch all (checked and unchecked)
exception
s throw by the SsimHelper and process them as
}
catch
(
Throwable
analysisFailure
)
{
// Catch all (checked and unchecked)
failure
s throw by the SsimHelper and process them as
// part of the TransformationTestResult.
Exception
analysisException
=
analysisFailure
instanceof
Exception
?
(
Exception
)
analysisFailure
:
new
IllegalStateException
(
analysisFailure
);
resultBuilder
.
setAnalysisException
(
analysisException
);
Log
.
e
(
TAG_PREFIX
+
testId
,
"SSIM calculation failed."
,
analysisException
);
}
return
resultBuilder
.
build
();
}
}
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