From f40a92281b246f4675a4fec6e2f62865a30c1554 Mon Sep 17 00:00:00 2001 From: bachinger Date: Wed, 2 Jun 2021 09:22:59 +0100 Subject: [PATCH] Add @DoNotInstrument annotations for extractors module PiperOrigin-RevId: 377007386 --- .../exoplayer2/extractor/ConstantBitrateSeekMapTest.java | 2 ++ .../android/exoplayer2/extractor/DefaultExtractorInputTest.java | 2 ++ .../exoplayer2/extractor/DefaultExtractorsFactoryTest.java | 2 ++ .../com/google/android/exoplayer2/extractor/ExtractorTest.java | 2 ++ .../google/android/exoplayer2/extractor/ExtractorUtilTest.java | 2 ++ .../android/exoplayer2/extractor/FlacFrameReaderTest.java | 2 ++ .../android/exoplayer2/extractor/FlacMetadataReaderTest.java | 2 ++ .../android/exoplayer2/extractor/FlacStreamMetadataTest.java | 2 ++ .../com/google/android/exoplayer2/extractor/Id3PeekerTest.java | 2 ++ .../google/android/exoplayer2/extractor/VorbisBitArrayTest.java | 2 ++ .../com/google/android/exoplayer2/extractor/VorbisUtilTest.java | 2 ++ .../extractor/amr/AmrExtractorNonParameterizedTest.java | 2 ++ .../exoplayer2/extractor/amr/AmrExtractorParameterizedTest.java | 2 ++ .../android/exoplayer2/extractor/amr/AmrExtractorSeekTest.java | 2 ++ .../exoplayer2/extractor/flac/FlacExtractorSeekTest.java | 2 ++ .../android/exoplayer2/extractor/flac/FlacExtractorTest.java | 2 ++ .../android/exoplayer2/extractor/flv/FlvExtractorSeekTest.java | 2 ++ .../android/exoplayer2/extractor/flv/FlvExtractorTest.java | 2 ++ .../android/exoplayer2/extractor/jpeg/JpegExtractorTest.java | 2 ++ .../exoplayer2/extractor/jpeg/MotionPhotoDescriptionTest.java | 2 ++ .../android/exoplayer2/extractor/mkv/DefaultEbmlReaderTest.java | 2 ++ .../android/exoplayer2/extractor/mkv/MatroskaExtractorTest.java | 2 ++ .../android/exoplayer2/extractor/mkv/VarintReaderTest.java | 2 ++ .../exoplayer2/extractor/mp3/ConstantBitrateSeekerTest.java | 2 ++ .../android/exoplayer2/extractor/mp3/IndexSeekerTest.java | 2 ++ .../android/exoplayer2/extractor/mp3/Mp3ExtractorTest.java | 2 ++ .../google/android/exoplayer2/extractor/mp3/XingSeekerTest.java | 2 ++ .../android/exoplayer2/extractor/mp4/AtomParsersTest.java | 2 ++ .../extractor/mp4/FragmentedMp4ExtractorNoSniffingTest.java | 2 ++ .../exoplayer2/extractor/mp4/FragmentedMp4ExtractorTest.java | 2 ++ .../android/exoplayer2/extractor/mp4/MetadataUtilTest.java | 2 ++ .../android/exoplayer2/extractor/mp4/Mp4ExtractorTest.java | 2 ++ .../android/exoplayer2/extractor/mp4/PsshAtomUtilTest.java | 2 ++ .../android/exoplayer2/extractor/mp4/SlowMotionDataTest.java | 2 ++ .../android/exoplayer2/extractor/ogg/DefaultOggSeekerTest.java | 2 ++ .../extractor/ogg/OggExtractorNonParameterizedTest.java | 2 ++ .../exoplayer2/extractor/ogg/OggExtractorParameterizedTest.java | 2 ++ .../google/android/exoplayer2/extractor/ogg/OggPacketTest.java | 2 ++ .../android/exoplayer2/extractor/ogg/OggPageHeaderTest.java | 2 ++ .../android/exoplayer2/extractor/ogg/VorbisReaderTest.java | 2 ++ .../android/exoplayer2/extractor/rawcc/RawCcExtractorTest.java | 2 ++ .../android/exoplayer2/extractor/ts/Ac3ExtractorTest.java | 2 ++ .../android/exoplayer2/extractor/ts/Ac4ExtractorTest.java | 2 ++ .../android/exoplayer2/extractor/ts/AdtsExtractorSeekTest.java | 2 ++ .../android/exoplayer2/extractor/ts/AdtsExtractorTest.java | 2 ++ .../google/android/exoplayer2/extractor/ts/AdtsReaderTest.java | 2 ++ .../android/exoplayer2/extractor/ts/PsDurationReaderTest.java | 2 ++ .../android/exoplayer2/extractor/ts/PsExtractorSeekTest.java | 2 ++ .../google/android/exoplayer2/extractor/ts/PsExtractorTest.java | 2 ++ .../android/exoplayer2/extractor/ts/SectionReaderTest.java | 2 ++ .../android/exoplayer2/extractor/ts/TsDurationReaderTest.java | 2 ++ .../android/exoplayer2/extractor/ts/TsExtractorSeekTest.java | 2 ++ .../google/android/exoplayer2/extractor/ts/TsExtractorTest.java | 2 ++ .../android/exoplayer2/extractor/wav/WavExtractorTest.java | 2 ++ 54 files changed, 108 insertions(+) diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ConstantBitrateSeekMapTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ConstantBitrateSeekMapTest.java index 4d70fe3b69..bbf72027f7 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ConstantBitrateSeekMapTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ConstantBitrateSeekMapTest.java @@ -22,9 +22,11 @@ import androidx.test.ext.junit.runners.AndroidJUnit4; import com.google.android.exoplayer2.C; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link ConstantBitrateSeekMap}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class ConstantBitrateSeekMapTest { private ConstantBitrateSeekMap constantBitrateSeekMap; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/DefaultExtractorInputTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/DefaultExtractorInputTest.java index cc5fe8e5e7..550b7515e0 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/DefaultExtractorInputTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/DefaultExtractorInputTest.java @@ -31,9 +31,11 @@ import java.io.IOException; import java.util.Arrays; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Test for {@link DefaultExtractorInput}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class DefaultExtractorInputTest { private static final String TEST_URI = "http://www.google.com"; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/DefaultExtractorsFactoryTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/DefaultExtractorsFactoryTest.java index 1c6ce7b70c..6ad0554d07 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/DefaultExtractorsFactoryTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/DefaultExtractorsFactoryTest.java @@ -42,9 +42,11 @@ import java.util.List; import java.util.Map; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link DefaultExtractorsFactory}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class DefaultExtractorsFactoryTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ExtractorTest.java index 390d1a2c77..4d3d8a7472 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ExtractorTest.java @@ -21,9 +21,11 @@ import androidx.test.ext.junit.runners.AndroidJUnit4; import com.google.android.exoplayer2.C; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link Extractor}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class ExtractorTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ExtractorUtilTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ExtractorUtilTest.java index 9604b48bee..df4f05f717 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ExtractorUtilTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ExtractorUtilTest.java @@ -25,9 +25,11 @@ import com.google.android.exoplayer2.upstream.DataSpec; import java.util.Arrays; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link ExtractorUtil}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class ExtractorUtilTest { private static final String TEST_URI = "http://www.google.com"; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacFrameReaderTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacFrameReaderTest.java index 75ef1a201e..3f37e5ca7b 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacFrameReaderTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacFrameReaderTest.java @@ -28,6 +28,7 @@ import com.google.android.exoplayer2.util.ParsableByteArray; import java.io.IOException; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** * Unit tests for {@link FlacFrameReader}. @@ -36,6 +37,7 @@ import org.junit.runner.RunWith; * href="https://xiph.org/flac/documentation_tools_flac.html">flac command. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class FlacFrameReaderTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacMetadataReaderTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacMetadataReaderTest.java index 1648d548d2..046b810a82 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacMetadataReaderTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacMetadataReaderTest.java @@ -33,6 +33,7 @@ import java.io.IOException; import java.util.ArrayList; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** * Unit tests for {@link FlacMetadataReader}. @@ -41,6 +42,7 @@ import org.junit.runner.RunWith; * href="https://xiph.org/flac/documentation_tools_metaflac.html">metaflac command. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class FlacMetadataReaderTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacStreamMetadataTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacStreamMetadataTest.java index 9c6b63ee0a..3a4d515d20 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacStreamMetadataTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/FlacStreamMetadataTest.java @@ -27,9 +27,11 @@ import java.io.IOException; import java.util.ArrayList; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link FlacStreamMetadata}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class FlacStreamMetadataTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/Id3PeekerTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/Id3PeekerTest.java index e0cf957a38..4a252fa097 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/Id3PeekerTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/Id3PeekerTest.java @@ -29,9 +29,11 @@ import com.google.android.exoplayer2.testutil.FakeExtractorInput; import java.io.IOException; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link Id3Peeker}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class Id3PeekerTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/VorbisBitArrayTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/VorbisBitArrayTest.java index 95e8d7321d..567be685db 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/VorbisBitArrayTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/VorbisBitArrayTest.java @@ -21,9 +21,11 @@ import androidx.test.ext.junit.runners.AndroidJUnit4; import com.google.android.exoplayer2.testutil.TestUtil; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link VorbisBitArray}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class VorbisBitArrayTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/VorbisUtilTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/VorbisUtilTest.java index 0db0ebd79b..fb6892b364 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/VorbisUtilTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/VorbisUtilTest.java @@ -28,9 +28,11 @@ import com.google.android.exoplayer2.util.ParsableByteArray; import java.io.IOException; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link VorbisUtil}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class VorbisUtilTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorNonParameterizedTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorNonParameterizedTest.java index 4c31858a41..ea81846cee 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorNonParameterizedTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorNonParameterizedTest.java @@ -35,6 +35,7 @@ import java.io.IOException; import java.util.Random; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** * Tests for {@link AmrExtractor} that test specific behaviours and don't need to be parameterized. @@ -43,6 +44,7 @@ import org.junit.runner.RunWith; * AmrExtractorParameterizedTest}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class AmrExtractorNonParameterizedTest { private static final Random RANDOM = new Random(1234); diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorParameterizedTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorParameterizedTest.java index d8f9f20ae3..3fa8d8a742 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorParameterizedTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorParameterizedTest.java @@ -22,6 +22,7 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** * Unit tests for {@link AmrExtractor} that use parameterization to test a range of behaviours. @@ -30,6 +31,7 @@ import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; * AmrExtractorNonParameterizedTest}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class AmrExtractorParameterizedTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorSeekTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorSeekTest.java index 534cb2572f..e4ce7d2c97 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorSeekTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/AmrExtractorSeekTest.java @@ -32,9 +32,11 @@ import java.util.Random; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit tests for {@link AmrExtractor} seeking behaviour. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class AmrExtractorSeekTest { private static final Random random = new Random(1234L); diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/FlacExtractorSeekTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/FlacExtractorSeekTest.java index 16f92e2b4b..d89bcf4920 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/FlacExtractorSeekTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/FlacExtractorSeekTest.java @@ -32,9 +32,11 @@ import java.io.IOException; import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Seeking tests for {@link FlacExtractor}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class FlacExtractorSeekTest { private static final String TEST_FILE_SEEK_TABLE = "media/flac/bear.flac"; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/FlacExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/FlacExtractorTest.java index 1d776b9355..9a283928b8 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/FlacExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/FlacExtractorTest.java @@ -23,9 +23,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit tests for {@link FlacExtractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public class FlacExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flv/FlvExtractorSeekTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flv/FlvExtractorSeekTest.java index e03b7ec6d6..cb1b04b9b9 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flv/FlvExtractorSeekTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flv/FlvExtractorSeekTest.java @@ -34,9 +34,11 @@ import java.util.List; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Seeking tests for {@link FlvExtractor}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class FlvExtractorSeekTest { private static final String TEST_FILE_KEY_FRAME_INDEX = diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flv/FlvExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flv/FlvExtractorTest.java index 5a7e0a5a3e..f6e6b6f2a1 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flv/FlvExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flv/FlvExtractorTest.java @@ -22,9 +22,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link FlvExtractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class FlvExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/jpeg/JpegExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/jpeg/JpegExtractorTest.java index 8e5556bf81..fa493f4452 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/jpeg/JpegExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/jpeg/JpegExtractorTest.java @@ -20,9 +20,11 @@ import com.google.common.collect.ImmutableList; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit tests for {@link JpegExtractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class JpegExtractorTest { @ParameterizedRobolectricTestRunner.Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/jpeg/MotionPhotoDescriptionTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/jpeg/MotionPhotoDescriptionTest.java index 6c068d2587..5c9635095d 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/jpeg/MotionPhotoDescriptionTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/jpeg/MotionPhotoDescriptionTest.java @@ -24,9 +24,11 @@ import com.google.android.exoplayer2.util.MimeTypes; import com.google.common.collect.ImmutableList; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link MotionPhotoDescription}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class MotionPhotoDescriptionTest { private static final long TEST_PRESENTATION_TIMESTAMP_US = 5L; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/DefaultEbmlReaderTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/DefaultEbmlReaderTest.java index e1a700f5ed..3ba902ec88 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/DefaultEbmlReaderTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/DefaultEbmlReaderTest.java @@ -27,9 +27,11 @@ import java.util.Arrays; import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests {@link DefaultEbmlReader}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class DefaultEbmlReaderTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractorTest.java index 64faff9a0e..28e7057577 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractorTest.java @@ -22,9 +22,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests for {@link MatroskaExtractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class MatroskaExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/VarintReaderTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/VarintReaderTest.java index e18d2cb40f..860bc009b2 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/VarintReaderTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/VarintReaderTest.java @@ -29,9 +29,11 @@ import java.io.EOFException; import java.io.IOException; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests for {@link VarintReader}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class VarintReaderTest { private static final byte MAX_BYTE = (byte) 0xFF; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/ConstantBitrateSeekerTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/ConstantBitrateSeekerTest.java index e3137a106d..713a269185 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/ConstantBitrateSeekerTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/ConstantBitrateSeekerTest.java @@ -34,9 +34,11 @@ import java.util.List; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests for {@link ConstantBitrateSeeker}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class ConstantBitrateSeekerTest { private static final String CONSTANT_FRAME_SIZE_TEST_FILE = "media/mp3/bear-cbr-constant-frame-size-no-seek-table.mp3"; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/IndexSeekerTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/IndexSeekerTest.java index 24530c12f1..679ee526bc 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/IndexSeekerTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/IndexSeekerTest.java @@ -35,9 +35,11 @@ import java.util.List; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests for {@link IndexSeeker}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class IndexSeekerTest { private static final String TEST_FILE_NO_SEEK_TABLE = "media/mp3/bear-vbr-no-seek-table.mp3"; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/Mp3ExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/Mp3ExtractorTest.java index f209574de4..5d9e0380fb 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/Mp3ExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/Mp3ExtractorTest.java @@ -23,9 +23,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link Mp3Extractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class Mp3ExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/XingSeekerTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/XingSeekerTest.java index 3b40bf85d7..b18f32edb3 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/XingSeekerTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/XingSeekerTest.java @@ -27,9 +27,11 @@ import com.google.android.exoplayer2.util.Util; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests for {@link XingSeeker}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class XingSeekerTest { // Xing header/payload from http://storage.googleapis.com/exoplayer-test-media-0/play.mp3. diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/AtomParsersTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/AtomParsersTest.java index 497b623140..226b40559b 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/AtomParsersTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/AtomParsersTest.java @@ -24,9 +24,11 @@ import com.google.android.exoplayer2.util.ParsableByteArray; import com.google.android.exoplayer2.util.Util; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests for {@link AtomParsers}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class AtomParsersTest { private static final String ATOM_HEADER = "000000000000000000000000"; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4ExtractorNoSniffingTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4ExtractorNoSniffingTest.java index 969c9b8d5a..a470457044 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4ExtractorNoSniffingTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4ExtractorNoSniffingTest.java @@ -25,11 +25,13 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** * Tests for {@link FragmentedMp4Extractor} that test behaviours where sniffing must not be tested. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public class FragmentedMp4ExtractorNoSniffingTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4ExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4ExtractorTest.java index a9d2397ca7..14783a27b0 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4ExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4ExtractorTest.java @@ -27,9 +27,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests for {@link FragmentedMp4Extractor} that test behaviours where sniffing must be tested. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class FragmentedMp4ExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/MetadataUtilTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/MetadataUtilTest.java index 70e483457a..471e654a09 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/MetadataUtilTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/MetadataUtilTest.java @@ -20,9 +20,11 @@ import static com.google.common.truth.Truth.assertThat; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Test for {@link MetadataUtil}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class MetadataUtilTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/Mp4ExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/Mp4ExtractorTest.java index 4408ffab83..8d8bd0dfa1 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/Mp4ExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/Mp4ExtractorTest.java @@ -22,9 +22,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests for {@link Mp4Extractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class Mp4ExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtilTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtilTest.java index cee9e22af9..e526c9e3c8 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtilTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtilTest.java @@ -27,9 +27,11 @@ import com.google.android.exoplayer2.util.ParsableByteArray; import java.util.UUID; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests for {@link PsshAtomUtil}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class PsshAtomUtilTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/SlowMotionDataTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/SlowMotionDataTest.java index 5b1c33303d..c22220931f 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/SlowMotionDataTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp4/SlowMotionDataTest.java @@ -24,9 +24,11 @@ import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link SlowMotionData} */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class SlowMotionDataTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/DefaultOggSeekerTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/DefaultOggSeekerTest.java index e30f27713e..1ee87d1b1d 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/DefaultOggSeekerTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/DefaultOggSeekerTest.java @@ -30,9 +30,11 @@ import java.io.IOException; import java.util.Random; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link DefaultOggSeeker}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class DefaultOggSeekerTest { private final Random random = new Random(/* seed= */ 0); diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggExtractorNonParameterizedTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggExtractorNonParameterizedTest.java index d939d51b77..4131054775 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggExtractorNonParameterizedTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggExtractorNonParameterizedTest.java @@ -28,6 +28,7 @@ import com.google.android.exoplayer2.testutil.FakeExtractorOutput; import java.io.IOException; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** * Tests for {@link OggExtractor} that test specific behaviours and don't need to be parameterized. @@ -36,6 +37,7 @@ import org.junit.runner.RunWith; * OggExtractorParameterizedTest}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class OggExtractorNonParameterizedTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggExtractorParameterizedTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggExtractorParameterizedTest.java index 8cbe254f07..48828b9b4a 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggExtractorParameterizedTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggExtractorParameterizedTest.java @@ -22,6 +22,7 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** * Unit tests for {@link OggExtractor} that use parameterization to test a range of behaviours. @@ -29,6 +30,7 @@ import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; *

For non-parameterized tests see {@link OggExtractorNonParameterizedTest}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class OggExtractorParameterizedTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggPacketTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggPacketTest.java index e74ecf7be0..d9bbe348f9 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggPacketTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggPacketTest.java @@ -28,9 +28,11 @@ import java.util.Arrays; import java.util.Random; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link OggPacket}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class OggPacketTest { private static final String TEST_FILE = "media/ogg/bear.opus"; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggPageHeaderTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggPageHeaderTest.java index ad821401ae..89c8306342 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggPageHeaderTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/OggPageHeaderTest.java @@ -28,9 +28,11 @@ import java.io.IOException; import java.util.Random; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link OggPageHeader}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class OggPageHeaderTest { private final Random random; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/VorbisReaderTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/VorbisReaderTest.java index cab37c4183..e938743379 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/VorbisReaderTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/VorbisReaderTest.java @@ -30,9 +30,11 @@ import com.google.android.exoplayer2.util.ParsableByteArray; import java.io.IOException; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link VorbisReader}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class VorbisReaderTest { @Test diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/rawcc/RawCcExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/rawcc/RawCcExtractorTest.java index 3856f2b573..5873bfc9b7 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/rawcc/RawCcExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/rawcc/RawCcExtractorTest.java @@ -22,9 +22,11 @@ import com.google.common.collect.ImmutableList; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; +import org.robolectric.annotation.internal.DoNotInstrument; /** Tests for {@link RawCcExtractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class RawCcExtractorTest { @ParameterizedRobolectricTestRunner.Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/Ac3ExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/Ac3ExtractorTest.java index 8b0ffef80d..6f28ecde4a 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/Ac3ExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/Ac3ExtractorTest.java @@ -22,9 +22,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link Ac3Extractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class Ac3ExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/Ac4ExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/Ac4ExtractorTest.java index 39ab1bb534..50f04c43fc 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/Ac4ExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/Ac4ExtractorTest.java @@ -22,9 +22,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link Ac4Extractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class Ac4ExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsExtractorSeekTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsExtractorSeekTest.java index 2770d4ef66..59c5130050 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsExtractorSeekTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsExtractorSeekTest.java @@ -32,9 +32,11 @@ import java.util.Random; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link AdtsExtractor}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class AdtsExtractorSeekTest { private static final Random random = new Random(1234L); diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsExtractorTest.java index 420d8d589b..fb70fe603c 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsExtractorTest.java @@ -23,9 +23,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link AdtsExtractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class AdtsExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsReaderTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsReaderTest.java index 6869c0314c..ed1726e50b 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsReaderTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/AdtsReaderTest.java @@ -31,9 +31,11 @@ import java.util.Arrays; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Test for {@link AdtsReader}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public class AdtsReaderTest { public static final byte[] ID3_DATA_1 = diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsDurationReaderTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsDurationReaderTest.java index 8c1805c568..df79f0bba9 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsDurationReaderTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsDurationReaderTest.java @@ -27,9 +27,11 @@ import java.io.IOException; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link PsDurationReader}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class PsDurationReaderTest { private PsDurationReader tsDurationReader; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsExtractorSeekTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsExtractorSeekTest.java index d2d76d6695..9c8ee8687b 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsExtractorSeekTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsExtractorSeekTest.java @@ -41,9 +41,11 @@ import java.util.Random; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Seeking tests for {@link PsExtractor}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class PsExtractorSeekTest { private static final String PS_FILE_PATH = "media/ts/elephants_dream.mpg"; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsExtractorTest.java index 688cc318f1..7143ca0783 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/PsExtractorTest.java @@ -22,9 +22,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link PsExtractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class PsExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/SectionReaderTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/SectionReaderTest.java index 59054ebbab..7866e67d47 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/SectionReaderTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/SectionReaderTest.java @@ -31,9 +31,11 @@ import java.util.List; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Test for {@link SectionReader}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class SectionReaderTest { private byte[] packetPayload; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsDurationReaderTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsDurationReaderTest.java index 0e55d292b8..97c74e4292 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsDurationReaderTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsDurationReaderTest.java @@ -27,9 +27,11 @@ import java.io.IOException; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link TsDurationReader}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class TsDurationReaderTest { private TsDurationReader tsDurationReader; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsExtractorSeekTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsExtractorSeekTest.java index a796f3c994..1123e14a96 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsExtractorSeekTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsExtractorSeekTest.java @@ -36,9 +36,11 @@ import java.util.Random; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.robolectric.annotation.internal.DoNotInstrument; /** Seeking tests for {@link TsExtractor}. */ @RunWith(AndroidJUnit4.class) +@DoNotInstrument public final class TsExtractorSeekTest { private static final String TEST_FILE = "media/ts/bbb_2500ms.ts"; diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsExtractorTest.java index 87215d45ee..f113efbfa5 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/TsExtractorTest.java @@ -42,9 +42,11 @@ import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; import org.robolectric.ParameterizedRobolectricTestRunner.Parameter; import org.robolectric.ParameterizedRobolectricTestRunner.Parameters; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link TsExtractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class TsExtractorTest { @Parameters(name = "{0}") diff --git a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/wav/WavExtractorTest.java b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/wav/WavExtractorTest.java index 4217a1528a..cc35344b2a 100644 --- a/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/wav/WavExtractorTest.java +++ b/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/wav/WavExtractorTest.java @@ -21,9 +21,11 @@ import com.google.common.collect.ImmutableList; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.ParameterizedRobolectricTestRunner; +import org.robolectric.annotation.internal.DoNotInstrument; /** Unit test for {@link WavExtractor}. */ @RunWith(ParameterizedRobolectricTestRunner.class) +@DoNotInstrument public final class WavExtractorTest { @ParameterizedRobolectricTestRunner.Parameters(name = "{0}")