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
1ea4fbb7
authored
Apr 06, 2022
by
claincly
Committed by
Ian Baker
Apr 07, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add test skipping for API < 23 for EncoderPerformanceTest.
PiperOrigin-RevId: 439802597
parent
09f9a44d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
library/transformer/src/androidTest/java/com/google/android/exoplayer2/transformer/mh/analysis/EncoderPerformanceAnalysisTest.java
library/transformer/src/androidTest/java/com/google/android/exoplayer2/transformer/mh/analysis/EncoderPerformanceAnalysisTest.java
View file @
1ea4fbb7
...
...
@@ -16,6 +16,7 @@
package
com
.
google
.
android
.
exoplayer2
.
transformer
.
mh
.
analysis
;
import
static
com
.
google
.
android
.
exoplayer2
.
transformer
.
AndroidTestUtil
.
recordTestSkipped
;
import
static
com
.
google
.
android
.
exoplayer2
.
util
.
Assertions
.
checkNotNull
;
import
android.content.Context
;
...
...
@@ -95,13 +96,22 @@ public class EncoderPerformanceAnalysisTest {
String
testId
=
Util
.
formatInvariant
(
"analyzePerformance_%s_OpRate_%d_Priority_%d"
,
filename
,
operatingRate
,
priority
);
Context
context
=
ApplicationProvider
.
getApplicationContext
();
if
(
Util
.
SDK_INT
<
23
)
{
recordTestSkipped
(
context
,
testId
,
/* reason= */
"Skipping on this API version due to lack of support for setting operating"
+
" rate and priority."
);
return
;
}
Map
<
String
,
Object
>
inputValues
=
new
HashMap
<>();
inputValues
.
put
(
"inputFilename"
,
filename
);
inputValues
.
put
(
"operatingRate"
,
operatingRate
);
inputValues
.
put
(
"priority"
,
priority
);
Context
context
=
ApplicationProvider
.
getApplicationContext
();
Transformer
transformer
=
new
Transformer
.
Builder
(
context
)
.
setRemoveAudio
(
true
)
...
...
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