Add @DoNotInstrument annotations for extractors module
PiperOrigin-RevId: 377007386
This commit is contained in:
parent
fc47c2fe86
commit
f40a92281b
@ -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;
|
||||
|
@ -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";
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
|
@ -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</a> command.
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@DoNotInstrument
|
||||
public class FlacFrameReaderTest {
|
||||
|
||||
@Test
|
||||
|
@ -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</a> command.
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@DoNotInstrument
|
||||
public class FlacMetadataReaderTest {
|
||||
|
||||
@Test
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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}")
|
||||
|
@ -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);
|
||||
|
@ -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";
|
||||
|
@ -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}")
|
||||
|
@ -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 =
|
||||
|
@ -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}")
|
||||
|
@ -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}")
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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}")
|
||||
|
@ -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;
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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}")
|
||||
|
@ -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.
|
||||
|
@ -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";
|
||||
|
@ -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}")
|
||||
|
@ -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}")
|
||||
|
@ -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
|
||||
|
@ -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}")
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
* <p>For non-parameterized tests see {@link OggExtractorNonParameterizedTest}.
|
||||
*/
|
||||
@RunWith(ParameterizedRobolectricTestRunner.class)
|
||||
@DoNotInstrument
|
||||
public final class OggExtractorParameterizedTest {
|
||||
|
||||
@Parameters(name = "{0}")
|
||||
|
@ -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";
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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}")
|
||||
|
@ -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}")
|
||||
|
@ -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}")
|
||||
|
@ -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);
|
||||
|
@ -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}")
|
||||
|
@ -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 =
|
||||
|
@ -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;
|
||||
|
@ -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";
|
||||
|
@ -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}")
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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";
|
||||
|
@ -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}")
|
||||
|
@ -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}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user