Commit a291d622 by olly Committed by Oliver Woodman

Automated g4 rollback of changelist 238625384.

*** Original change description ***

Allow exoplayer/v2 mockito2

***

PiperOrigin-RevId: 238626401
parent 07702cec
......@@ -2,7 +2,6 @@
### dev-v2 (not yet released) ###
* Update to Mockito 2
* Add new `ExoPlaybackException` types for remote exceptions and out-of-memory
errors.
* HLS:
......
......@@ -18,8 +18,8 @@ project.ext {
minSdkVersion = 16
targetSdkVersion = 28
compileSdkVersion = 28
dexmakerVersion = '2.21.0'
mockitoVersion = '2.25.0'
dexmakerVersion = '1.2'
mockitoVersion = '1.9.5'
robolectricVersion = '4.2'
autoValueVersion = '1.6'
checkerframeworkVersion = '2.5.0'
......
......@@ -65,8 +65,8 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:' + androidXTestVersion
androidTestImplementation 'androidx.test.ext:truth:' + androidXTestVersion
androidTestImplementation 'com.google.auto.value:auto-value-annotations:' + autoValueVersion
androidTestImplementation 'com.linkedin.dexmaker:dexmaker:' + dexmakerVersion
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:' + dexmakerVersion
androidTestImplementation 'com.google.dexmaker:dexmaker:' + dexmakerVersion
androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:' + dexmakerVersion
androidTestImplementation 'org.mockito:mockito-core:' + mockitoVersion
androidTestAnnotationProcessor 'com.google.auto.value:auto-value:' + autoValueVersion
testImplementation 'androidx.test:core:' + androidXTestVersion
......
......@@ -148,7 +148,7 @@ public class OfflineLicenseHelperTest {
private void setStubKeySetId(byte[] keySetId)
throws android.media.NotProvisionedException, android.media.DeniedByServerException {
when(mediaDrm.provideKeyResponse(any(byte[].class), any())).thenReturn(keySetId);
when(mediaDrm.provideKeyResponse(any(byte[].class), any(byte[].class))).thenReturn(keySetId);
}
private static void assertOfflineLicenseKeySetIdEqual(
......
......@@ -16,8 +16,8 @@
package com.google.android.exoplayer2.trackselection;
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.argThat;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.mock;
......@@ -268,7 +268,7 @@ public final class AdaptiveTrackSelectionTest {
ArgumentMatcher<Format[]> matcher =
new ArgumentMatcher<Format[]>() {
@Override
public boolean matches(Format[] argument) {
public boolean matches(Object argument) {
Format[] formats = (Format[]) argument;
return formats.length == 3
&& Arrays.asList(formats).containsAll(Arrays.asList(format1, format2, format3));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment