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
2959b5f9
authored
Mar 15, 2019
by
olly
Committed by
Oliver Woodman
Mar 20, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Roll forward of 238625384.
PiperOrigin-RevId: 238666870
parent
a291d622
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
RELEASENOTES.md
constants.gradle
library/core/build.gradle
library/core/src/test/java/com/google/android/exoplayer2/drm/OfflineLicenseHelperTest.java
library/core/src/test/java/com/google/android/exoplayer2/trackselection/AdaptiveTrackSelectionTest.java
RELEASENOTES.md
View file @
2959b5f9
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
### dev-v2 (not yet released) ###
### dev-v2 (not yet released) ###
*
Update to Mockito 2
*
Add new
`ExoPlaybackException`
types for remote exceptions and out-of-memory
*
Add new
`ExoPlaybackException`
types for remote exceptions and out-of-memory
errors.
errors.
*
HLS:
*
HLS:
...
...
constants.gradle
View file @
2959b5f9
...
@@ -18,8 +18,8 @@ project.ext {
...
@@ -18,8 +18,8 @@ project.ext {
minSdkVersion
=
16
minSdkVersion
=
16
targetSdkVersion
=
28
targetSdkVersion
=
28
compileSdkVersion
=
28
compileSdkVersion
=
28
dexmakerVersion
=
'
1.2
'
dexmakerVersion
=
'
2.21.0
'
mockitoVersion
=
'
1.9.5
'
mockitoVersion
=
'
2.25.0
'
robolectricVersion
=
'4.2'
robolectricVersion
=
'4.2'
autoValueVersion
=
'1.6'
autoValueVersion
=
'1.6'
checkerframeworkVersion
=
'2.5.0'
checkerframeworkVersion
=
'2.5.0'
...
...
library/core/build.gradle
View file @
2959b5f9
...
@@ -65,8 +65,8 @@ dependencies {
...
@@ -65,8 +65,8 @@ dependencies {
androidTestImplementation
'androidx.test.ext:junit:'
+
androidXTestVersion
androidTestImplementation
'androidx.test.ext:junit:'
+
androidXTestVersion
androidTestImplementation
'androidx.test.ext:truth:'
+
androidXTestVersion
androidTestImplementation
'androidx.test.ext:truth:'
+
androidXTestVersion
androidTestImplementation
'com.google.auto.value:auto-value-annotations:'
+
autoValueVersion
androidTestImplementation
'com.google.auto.value:auto-value-annotations:'
+
autoValueVersion
androidTestImplementation
'com.
google
.dexmaker:dexmaker:'
+
dexmakerVersion
androidTestImplementation
'com.
linkedin
.dexmaker:dexmaker:'
+
dexmakerVersion
androidTestImplementation
'com.
google
.dexmaker:dexmaker-mockito:'
+
dexmakerVersion
androidTestImplementation
'com.
linkedin
.dexmaker:dexmaker-mockito:'
+
dexmakerVersion
androidTestImplementation
'org.mockito:mockito-core:'
+
mockitoVersion
androidTestImplementation
'org.mockito:mockito-core:'
+
mockitoVersion
androidTestAnnotationProcessor
'com.google.auto.value:auto-value:'
+
autoValueVersion
androidTestAnnotationProcessor
'com.google.auto.value:auto-value:'
+
autoValueVersion
testImplementation
'androidx.test:core:'
+
androidXTestVersion
testImplementation
'androidx.test:core:'
+
androidXTestVersion
...
...
library/core/src/test/java/com/google/android/exoplayer2/drm/OfflineLicenseHelperTest.java
View file @
2959b5f9
...
@@ -148,7 +148,7 @@ public class OfflineLicenseHelperTest {
...
@@ -148,7 +148,7 @@ public class OfflineLicenseHelperTest {
private
void
setStubKeySetId
(
byte
[]
keySetId
)
private
void
setStubKeySetId
(
byte
[]
keySetId
)
throws
android
.
media
.
NotProvisionedException
,
android
.
media
.
DeniedByServerException
{
throws
android
.
media
.
NotProvisionedException
,
android
.
media
.
DeniedByServerException
{
when
(
mediaDrm
.
provideKeyResponse
(
any
(
byte
[].
class
),
any
(
byte
[].
class
))).
thenReturn
(
keySetId
);
when
(
mediaDrm
.
provideKeyResponse
(
any
(
byte
[].
class
),
any
())).
thenReturn
(
keySetId
);
}
}
private
static
void
assertOfflineLicenseKeySetIdEqual
(
private
static
void
assertOfflineLicenseKeySetIdEqual
(
...
...
library/core/src/test/java/com/google/android/exoplayer2/trackselection/AdaptiveTrackSelectionTest.java
View file @
2959b5f9
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
package
com
.
google
.
android
.
exoplayer2
.
trackselection
;
package
com
.
google
.
android
.
exoplayer2
.
trackselection
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
org
.
mockito
.
ArgumentMatchers
.
argThat
;
import
static
org
.
mockito
.
Matchers
.
any
;
import
static
org
.
mockito
.
Matchers
.
any
;
import
static
org
.
mockito
.
Matchers
.
argThat
;
import
static
org
.
mockito
.
Matchers
.
eq
;
import
static
org
.
mockito
.
Matchers
.
eq
;
import
static
org
.
mockito
.
Mockito
.
atLeastOnce
;
import
static
org
.
mockito
.
Mockito
.
atLeastOnce
;
import
static
org
.
mockito
.
Mockito
.
mock
;
import
static
org
.
mockito
.
Mockito
.
mock
;
...
@@ -268,7 +268,7 @@ public final class AdaptiveTrackSelectionTest {
...
@@ -268,7 +268,7 @@ public final class AdaptiveTrackSelectionTest {
ArgumentMatcher
<
Format
[]>
matcher
=
ArgumentMatcher
<
Format
[]>
matcher
=
new
ArgumentMatcher
<
Format
[]>()
{
new
ArgumentMatcher
<
Format
[]>()
{
@Override
@Override
public
boolean
matches
(
Object
argument
)
{
public
boolean
matches
(
Format
[]
argument
)
{
Format
[]
formats
=
(
Format
[])
argument
;
Format
[]
formats
=
(
Format
[])
argument
;
return
formats
.
length
==
3
return
formats
.
length
==
3
&&
Arrays
.
asList
(
formats
).
containsAll
(
Arrays
.
asList
(
format1
,
format2
,
format3
));
&&
Arrays
.
asList
(
formats
).
containsAll
(
Arrays
.
asList
(
format1
,
format2
,
format3
));
...
...
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