mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix test build.
Builds now fail when raw generics are used. PiperOrigin-RevId: 253969682
This commit is contained in:
parent
aaf57c76cf
commit
ba5e2a4a77
2 changed files with 4 additions and 7 deletions
|
|
@ -19,7 +19,6 @@ import static com.google.common.truth.Truth.assertThat;
|
|||
import static org.junit.Assert.fail;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.ArgumentMatchers.anyInt;
|
||||
import static org.mockito.ArgumentMatchers.nullable;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
import android.util.Pair;
|
||||
|
|
@ -27,7 +26,6 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
|
|||
import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.drm.DrmInitData.SchemeData;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
|
@ -49,8 +47,7 @@ public class OfflineLicenseHelperTest {
|
|||
public void setUp() throws Exception {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
when(mediaDrm.openSession()).thenReturn(new byte[] {1, 2, 3});
|
||||
when(mediaDrm.getKeyRequest(
|
||||
nullable(byte[].class), nullable(List.class), anyInt(), nullable(HashMap.class)))
|
||||
when(mediaDrm.getKeyRequest(any(), any(), anyInt(), any()))
|
||||
.thenReturn(
|
||||
new ExoMediaDrm.KeyRequest(/* data= */ new byte[0], /* licenseServerUrl= */ ""));
|
||||
offlineLicenseHelper =
|
||||
|
|
|
|||
|
|
@ -45,13 +45,13 @@ public final class DefaultExtractorsFactoryTest {
|
|||
DefaultExtractorsFactory defaultExtractorsFactory = new DefaultExtractorsFactory();
|
||||
|
||||
Extractor[] extractors = defaultExtractorsFactory.createExtractors();
|
||||
List<Class> listCreatedExtractorClasses = new ArrayList<>();
|
||||
List<Class<?>> listCreatedExtractorClasses = new ArrayList<>();
|
||||
for (Extractor extractor : extractors) {
|
||||
listCreatedExtractorClasses.add(extractor.getClass());
|
||||
}
|
||||
|
||||
Class[] expectedExtractorClassses =
|
||||
new Class[] {
|
||||
Class<?>[] expectedExtractorClassses =
|
||||
new Class<?>[] {
|
||||
MatroskaExtractor.class,
|
||||
FragmentedMp4Extractor.class,
|
||||
Mp4Extractor.class,
|
||||
|
|
|
|||
Loading…
Reference in a new issue