Remove @DoNotInstrument from test classes

This isn't needed now we've updated to Robolectric 4.6

PiperOrigin-RevId: 383109343
This commit is contained in:
ibaker 2021-07-05 12:12:41 +01:00 committed by kim-vde
parent a14739acdd
commit 0df0df9aee
64 changed files with 0 additions and 128 deletions

View File

@ -90,11 +90,9 @@ import org.mockito.Captor;
import org.mockito.InOrder;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link CastPlayer}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class CastPlayerTest {
private CastPlayer castPlayer;

View File

@ -29,11 +29,9 @@ import java.util.Collections;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link CastTimelineTracker}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class CastTimelineTrackerTest {
private static final long DURATION_2_MS = 2000;

View File

@ -23,11 +23,9 @@ import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.source.TrackGroup;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link CastTrackSelection}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class CastTrackSelectionTest {
private static final TrackGroup TRACK_GROUP =

View File

@ -27,11 +27,9 @@ import com.google.android.gms.cast.MediaQueueItem;
import java.util.Collections;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link DefaultMediaItemConverter}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultMediaItemConverterTest {
@Test

View File

@ -29,11 +29,9 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link ByteArrayUploadDataProvider}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class ByteArrayUploadDataProviderTest {
private static final byte[] TEST_DATA = new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

View File

@ -76,12 +76,10 @@ import org.mockito.ArgumentCaptor;
import org.mockito.ArgumentMatchers;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.robolectric.annotation.internal.DoNotInstrument;
import org.robolectric.shadows.ShadowLooper;
/** Tests for {@link CronetDataSource}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class CronetDataSourceTest {
private static final int TEST_CONNECT_TIMEOUT_MS = 100;

View File

@ -20,14 +20,12 @@ import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.testutil.DefaultRenderersFactoryAsserts;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/**
* Unit test for {@link DefaultRenderersFactoryTest} with {@link FfmpegAudioRenderer} and {@link
* FfmpegVideoRenderer}.
*/
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class DefaultRenderersFactoryTest {
@Test

View File

@ -20,11 +20,9 @@ import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.testutil.DefaultRenderersFactoryAsserts;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link DefaultRenderersFactoryTest} with {@link LibflacAudioRenderer}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class DefaultRenderersFactoryTest {
@Test

View File

@ -24,11 +24,9 @@ import com.google.common.collect.ImmutableList;
import okhttp3.OkHttpClient;
import org.junit.Rule;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** {@link DataSource} contract tests for {@link OkHttpDataSource}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class OkHttpDataSourceContractTest extends DataSourceContractTest {
@Rule public HttpDataSourceTestEnv httpDataSourceTestEnv = new HttpDataSourceTestEnv();

View File

@ -32,11 +32,9 @@ import okhttp3.mockwebserver.MockResponse;
import okhttp3.mockwebserver.MockWebServer;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link OkHttpDataSource}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class OkHttpDataSourceTest {
/**

View File

@ -20,11 +20,9 @@ import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.testutil.DefaultRenderersFactoryAsserts;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link DefaultRenderersFactoryTest} with {@link LibopusAudioRenderer}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class DefaultRenderersFactoryTest {
@Test

View File

@ -23,11 +23,9 @@ import com.google.android.exoplayer2.upstream.DefaultDataSource;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link DefaultDataSource} with RTMP URIs. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class DefaultDataSourceTest {
@Test

View File

@ -20,11 +20,9 @@ import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.testutil.DefaultRenderersFactoryAsserts;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link DefaultRenderersFactoryTest} with {@link LibvpxVideoRenderer}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class DefaultRenderersFactoryTest {
@Test

View File

@ -29,11 +29,9 @@ import javax.crypto.Cipher;
import javax.crypto.NoSuchPaddingException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link Aes128DataSource}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class Aes128DataSourceTest {
@Test

View File

@ -40,11 +40,9 @@ import java.util.Map;
import org.junit.Before;
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 class DefaultHlsExtractorFactoryTest {
private static final Uri URI_WITH_JPEG_EXTENSION = Uri.parse("http://path/filename.jpg");

View File

@ -27,11 +27,9 @@ import com.google.android.exoplayer2.source.MediaSource;
import com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for creating HLS media sources with the {@link DefaultMediaSourceFactory}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultMediaSourceFactoryTest {
private static final String URI_MEDIA = "http://exoplayer.dev/video";

View File

@ -23,11 +23,9 @@ import android.net.Uri;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link FullSegmentEncryptionKeyCache}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class FullSegmentEncryptionKeyCacheTest {
private final Uri firstUri = Uri.parse("https://www.google.com");

View File

@ -44,11 +44,9 @@ import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link HlsMediaPeriod}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class HlsMediaPeriodTest {
@Test

View File

@ -32,11 +32,9 @@ 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 HlsChunkSource.HlsMediaPlaylistSegmentIterator}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMediaPlaylistSegmentIteratorTest {
public static final String LOW_LATENCY_SEGMENTS_AND_PARTS =

View File

@ -43,11 +43,9 @@ import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicReference;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link HlsMediaSource}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMediaSourceTest {
// Tests backwards compatibility

View File

@ -22,11 +22,9 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.source.hls.HlsTrackMetadataEntry.VariantInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link HlsTrackMetadataEntry}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsTrackMetadataEntryTest {
@Test

View File

@ -29,11 +29,9 @@ 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 WebvttExtractor}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class WebvttExtractorTest {
@Test

View File

@ -24,11 +24,9 @@ import com.google.android.exoplayer2.testutil.FakeDataSource;
import com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test to verify creation of a HLS {@link DownloadHelper}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class DownloadHelperTest {
@Test

View File

@ -64,11 +64,9 @@ import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link HlsDownloader}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsDownloaderTest {
private SimpleCache cache;

View File

@ -39,11 +39,9 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link DefaultHlsPlaylistTracker}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultHlsPlaylistTrackerTest {
private static final String SAMPLE_M3U8_LIVE_MASTER = "media/m3u8/live_low_latency_master";

View File

@ -35,11 +35,9 @@ import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link HlsMasterPlaylist}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMasterPlaylistParserTest {
private static final String PLAYLIST_URI = "https://example.com/test.m3u8";

View File

@ -36,11 +36,9 @@ import java.util.HashMap;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link HlsMediaPlaylistParserTest}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMediaPlaylistParserTest {
@Test

View File

@ -23,11 +23,9 @@ import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link RtpPacketReorderingQueue}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtpPacketReorderingQueueTest {
private final RtpPacketReorderingQueue reorderingQueue = new RtpPacketReorderingQueue();

View File

@ -20,10 +20,8 @@ import com.google.common.collect.ImmutableList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.robolectric.annotation.internal.DoNotInstrument;
/** A value wrapper for a dumped RTP packet stream. */
@DoNotInstrument
/* package */ class RtpPacketStreamDump {
/** The name of the RTP track. */
public final String trackName;

View File

@ -25,11 +25,9 @@ import com.google.android.exoplayer2.C;
import java.util.Arrays;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link RtpPacket}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtpPacketTest {
/*
10.. .... = Version: RFC 1889 Version (2)

View File

@ -22,11 +22,9 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.source.rtsp.RtspMessageUtil.RtspAuthUserInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspAuthenticationInfo}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtspAuthenticationInfoTest {
@Test

View File

@ -33,11 +33,9 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests the {@link RtspClient} using the {@link RtspServer}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtspClientTest {
private static final String SESSION_DESCRIPTION =

View File

@ -23,11 +23,9 @@ import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ListMultimap;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspHeaders}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtspHeadersTest {
@Test

View File

@ -30,11 +30,9 @@ import java.util.concurrent.atomic.AtomicLong;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests the {@link RtspMediaPeriod} using the {@link RtspServer}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtspMediaPeriodTest {
private static final long DEFAULT_TIMEOUT_MS = 8000;

View File

@ -32,11 +32,9 @@ import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspMediaTrack}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtspMediaTrackTest {
@Test

View File

@ -39,11 +39,9 @@ import java.util.concurrent.atomic.AtomicReference;
import javax.net.SocketFactory;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspMessageChannel}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtspMessageChannelTest {
@Test

View File

@ -28,11 +28,9 @@ import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspMessageUtil}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtspMessageUtilTest {
@Test

View File

@ -51,11 +51,9 @@ import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.Config;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Playback testing for RTSP. */
@Config(sdk = 29)
@DoNotInstrument
@RunWith(AndroidJUnit4.class)
public final class RtspPlaybackTest {

View File

@ -22,11 +22,9 @@ 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 RtspSessionTiming}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtspSessionTimingTest {
@Test
public void parseTiming_withNowLiveTiming() throws Exception {

View File

@ -25,11 +25,9 @@ import com.google.android.exoplayer2.ParserException;
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 RtspTrackTiming}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtspTrackTimingTest {
@Test
public void parseTiming_withSeqNumberAndRtpTime() throws Exception {

View File

@ -32,11 +32,9 @@ import android.net.Uri;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link SessionDescription}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class SessionDescriptionTest {
@Test

View File

@ -24,11 +24,9 @@ import com.google.common.primitives.Bytes;
import java.util.Arrays;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link TransferRtpDataChannel}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class TransferRtpDataChannelTest {
private static final long POLL_TIMEOUT_MS = 8000;

View File

@ -21,11 +21,9 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.upstream.UdpDataSource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link UdpDataSourceRtpDataChannel}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class UdpDataSourceRtpDataChannelTest {
@Test

View File

@ -36,11 +36,9 @@ import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtpAc3Reader}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtpAc3ReaderTest {
private final RtpPacket frame1fragment1 =

View File

@ -27,13 +27,11 @@ import com.google.android.exoplayer2.source.MediaSource;
import com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/**
* Unit test for creating SmoothStreaming media sources with the {@link DefaultMediaSourceFactory}.
*/
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultMediaSourceFactoryTest {
private static final String URI_MEDIA = "http://exoplayer.dev/video";

View File

@ -37,11 +37,9 @@ import com.google.android.exoplayer2.upstream.TransferListener;
import com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link SsMediaPeriod}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class SsMediaPeriodTest {
@Test

View File

@ -25,11 +25,9 @@ import com.google.android.exoplayer2.upstream.FileDataSource;
import java.util.Collections;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link SsMediaSource}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class SsMediaSourceTest {
// Tests backwards compatibility

View File

@ -22,11 +22,9 @@ import com.google.android.exoplayer2.testutil.TestUtil;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link SsManifestParser}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class SsManifestParserTest {
private static final String SAMPLE_ISMC_1 = "media/smooth-streaming/sample_ismc_1";

View File

@ -31,11 +31,9 @@ import java.util.List;
import java.util.Random;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link SsManifest}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class SsManifestTest {
@Test

View File

@ -24,11 +24,9 @@ import com.google.android.exoplayer2.testutil.FakeDataSource;
import com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test to verify creation of a SmoothStreaming {@link DownloadHelper}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class DownloadHelperTest {
@Test

View File

@ -32,11 +32,9 @@ import java.util.Collections;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link SsDownloader}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class SsDownloaderTest {
@Test

View File

@ -31,11 +31,9 @@ import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link SefSlowMotionVideoSampleTransformer}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class SefSlowMotionVideoSampleTransformerTest {
/**

View File

@ -29,11 +29,9 @@ import com.google.common.collect.ImmutableList;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link SegmentSpeedProvider}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class SegmentSpeedProviderTest {
private static final SmtaMetadataEntry SMTA_SPEED_8 =

View File

@ -24,11 +24,9 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link Transformer.Builder}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class TransformerBuilderTest {
@Test

View File

@ -51,12 +51,10 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
import org.robolectric.shadows.ShadowMediaCodec;
/** Unit test for {@link Transformer}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class TransformerTest {
private static final String URI_PREFIX = "asset:///media/";

View File

@ -30,11 +30,9 @@ import com.google.common.base.Supplier;
import java.util.concurrent.TimeoutException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RobolectricUtil}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RobolectricUtilTest {
@Test
public void createRobolectricConditionVariable_blockWithTimeout_timesOut()

View File

@ -29,11 +29,9 @@ import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runner.RunWith;
import org.junit.runners.model.Statement;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link AdditionalFailureInfo}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class AdditionalFailureInfoTest {
private final ExpectedException expectedException = new ExpectedException();

View File

@ -28,11 +28,9 @@ import java.util.List;
import java.util.Random;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link FakeAdaptiveDataSet}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class FakeAdaptiveDataSetTest {
private static final Format[] TEST_FORMATS = {

View File

@ -32,12 +32,10 @@ import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
import org.robolectric.shadows.ShadowLooper;
/** Unit test for {@link FakeClock}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class FakeClockTest {
@Test

View File

@ -24,11 +24,9 @@ import java.io.IOException;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link FakeDataSet} */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class FakeDataSetTest {
@Test

View File

@ -21,11 +21,9 @@ import com.google.android.exoplayer2.upstream.DataSource;
import com.google.common.collect.ImmutableList;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** {@link DataSource} contract tests for {@link FakeDataSource}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class FakeDataSourceContractTest extends DataSourceContractTest {
private Uri simpleUri;

View File

@ -27,11 +27,9 @@ import java.util.Arrays;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link FakeDataSource}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class FakeDataSourceTest {
private static final String URI_STRING = "test://test.test";

View File

@ -28,7 +28,6 @@ import okhttp3.mockwebserver.MockWebServer;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link WebServerDispatcher}. */
// We use the OkHttp client library for these tests because it's generally nicer to use than Java's
@ -52,7 +51,6 @@ import org.robolectric.annotation.internal.DoNotInstrument;
// So instead we just don't test these cases that require passing header combinations that are
// impossible with OkHttp.
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class WebServerDispatcherTest {
private static int seed;

View File

@ -47,11 +47,9 @@ import com.google.android.exoplayer2.util.Util;
import com.google.common.truth.ExpectFailure;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link SpannedSubject}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class SpannedSubjectTest {
private static final String TEXT_PREFIX = "string with ";