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.InOrder;
import org.mockito.Mock; import org.mockito.Mock;
import org.mockito.Mockito; import org.mockito.Mockito;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link CastPlayer}. */ /** Tests for {@link CastPlayer}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class CastPlayerTest { public class CastPlayerTest {
private CastPlayer castPlayer; private CastPlayer castPlayer;

View file

@ -29,11 +29,9 @@ import java.util.Collections;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mockito; import org.mockito.Mockito;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link CastTimelineTracker}. */ /** Tests for {@link CastTimelineTracker}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class CastTimelineTrackerTest { public class CastTimelineTrackerTest {
private static final long DURATION_2_MS = 2000; 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 com.google.android.exoplayer2.source.TrackGroup;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link CastTrackSelection}. */ /** Test for {@link CastTrackSelection}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class CastTrackSelectionTest { public class CastTrackSelectionTest {
private static final TrackGroup TRACK_GROUP = private static final TrackGroup TRACK_GROUP =

View file

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

View file

@ -29,11 +29,9 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
import org.mockito.MockitoAnnotations; import org.mockito.MockitoAnnotations;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link ByteArrayUploadDataProvider}. */ /** Tests for {@link ByteArrayUploadDataProvider}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class ByteArrayUploadDataProviderTest { public final class ByteArrayUploadDataProviderTest {
private static final byte[] TEST_DATA = new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; 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.ArgumentMatchers;
import org.mockito.Mock; import org.mockito.Mock;
import org.mockito.MockitoAnnotations; import org.mockito.MockitoAnnotations;
import org.robolectric.annotation.internal.DoNotInstrument;
import org.robolectric.shadows.ShadowLooper; import org.robolectric.shadows.ShadowLooper;
/** Tests for {@link CronetDataSource}. */ /** Tests for {@link CronetDataSource}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class CronetDataSourceTest { public final class CronetDataSourceTest {
private static final int TEST_CONNECT_TIMEOUT_MS = 100; 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 com.google.android.exoplayer2.testutil.DefaultRenderersFactoryAsserts;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** /**
* Unit test for {@link DefaultRenderersFactoryTest} with {@link FfmpegAudioRenderer} and {@link * Unit test for {@link DefaultRenderersFactoryTest} with {@link FfmpegAudioRenderer} and {@link
* FfmpegVideoRenderer}. * FfmpegVideoRenderer}.
*/ */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class DefaultRenderersFactoryTest { public final class DefaultRenderersFactoryTest {
@Test @Test

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -40,11 +40,9 @@ import java.util.Map;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link DefaultExtractorsFactory}. */ /** Unit test for {@link DefaultExtractorsFactory}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultHlsExtractorFactoryTest { public class DefaultHlsExtractorFactoryTest {
private static final Uri URI_WITH_JPEG_EXTENSION = Uri.parse("http://path/filename.jpg"); 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 com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for creating HLS media sources with the {@link DefaultMediaSourceFactory}. */ /** Unit test for creating HLS media sources with the {@link DefaultMediaSourceFactory}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultMediaSourceFactoryTest { public class DefaultMediaSourceFactoryTest {
private static final String URI_MEDIA = "http://exoplayer.dev/video"; 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 androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link FullSegmentEncryptionKeyCache}. */ /** Tests for {@link FullSegmentEncryptionKeyCache}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class FullSegmentEncryptionKeyCacheTest { public class FullSegmentEncryptionKeyCacheTest {
private final Uri firstUri = Uri.parse("https://www.google.com"); 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 java.util.List;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link HlsMediaPeriod}. */ /** Unit test for {@link HlsMediaPeriod}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class HlsMediaPeriodTest { public final class HlsMediaPeriodTest {
@Test @Test

View file

@ -32,11 +32,9 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link HlsChunkSource.HlsMediaPlaylistSegmentIterator}. */ /** Unit test for {@link HlsChunkSource.HlsMediaPlaylistSegmentIterator}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMediaPlaylistSegmentIteratorTest { public class HlsMediaPlaylistSegmentIteratorTest {
public static final String LOW_LATENCY_SEGMENTS_AND_PARTS = 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 java.util.concurrent.atomic.AtomicReference;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link HlsMediaSource}. */ /** Unit test for {@link HlsMediaSource}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMediaSourceTest { public class HlsMediaSourceTest {
// Tests backwards compatibility // 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 com.google.android.exoplayer2.source.hls.HlsTrackMetadataEntry.VariantInfo;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link HlsTrackMetadataEntry}. */ /** Test for {@link HlsTrackMetadataEntry}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsTrackMetadataEntryTest { public class HlsTrackMetadataEntryTest {
@Test @Test

View file

@ -29,11 +29,9 @@ import java.io.EOFException;
import java.io.IOException; import java.io.IOException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link WebvttExtractor}. */ /** Tests for {@link WebvttExtractor}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class WebvttExtractorTest { public class WebvttExtractorTest {
@Test @Test

View file

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

View file

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

View file

@ -39,11 +39,9 @@ import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link DefaultHlsPlaylistTracker}. */ /** Unit test for {@link DefaultHlsPlaylistTracker}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultHlsPlaylistTrackerTest { public class DefaultHlsPlaylistTrackerTest {
private static final String SAMPLE_M3U8_LIVE_MASTER = "media/m3u8/live_low_latency_master"; 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 java.util.List;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link HlsMasterPlaylist}. */ /** Test for {@link HlsMasterPlaylist}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMasterPlaylistParserTest { public class HlsMasterPlaylistParserTest {
private static final String PLAYLIST_URI = "https://example.com/test.m3u8"; 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 java.util.List;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Test for {@link HlsMediaPlaylistParserTest}. */ /** Test for {@link HlsMediaPlaylistParserTest}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class HlsMediaPlaylistParserTest { public class HlsMediaPlaylistParserTest {
@Test @Test

View file

@ -23,11 +23,9 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link RtpPacketReorderingQueue}. */ /** Unit tests for {@link RtpPacketReorderingQueue}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtpPacketReorderingQueueTest { public class RtpPacketReorderingQueueTest {
private final RtpPacketReorderingQueue reorderingQueue = new RtpPacketReorderingQueue(); 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.JSONArray;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
import org.robolectric.annotation.internal.DoNotInstrument;
/** A value wrapper for a dumped RTP packet stream. */ /** A value wrapper for a dumped RTP packet stream. */
@DoNotInstrument
/* package */ class RtpPacketStreamDump { /* package */ class RtpPacketStreamDump {
/** The name of the RTP track. */ /** The name of the RTP track. */
public final String trackName; public final String trackName;

View file

@ -25,11 +25,9 @@ import com.google.android.exoplayer2.C;
import java.util.Arrays; import java.util.Arrays;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link RtpPacket}. */ /** Unit tests for {@link RtpPacket}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtpPacketTest { public final class RtpPacketTest {
/* /*
10.. .... = Version: RFC 1889 Version (2) 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 com.google.android.exoplayer2.source.rtsp.RtspMessageUtil.RtspAuthUserInfo;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspAuthenticationInfo}. */ /** Unit test for {@link RtspAuthenticationInfo}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtspAuthenticationInfoTest { public class RtspAuthenticationInfoTest {
@Test @Test

View file

@ -33,11 +33,9 @@ import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests the {@link RtspClient} using the {@link RtspServer}. */ /** Tests the {@link RtspClient} using the {@link RtspServer}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtspClientTest { public final class RtspClientTest {
private static final String SESSION_DESCRIPTION = 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 com.google.common.collect.ListMultimap;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspHeaders}. */ /** Unit test for {@link RtspHeaders}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtspHeadersTest { public final class RtspHeadersTest {
@Test @Test

View file

@ -30,11 +30,9 @@ import java.util.concurrent.atomic.AtomicLong;
import org.junit.After; import org.junit.After;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests the {@link RtspMediaPeriod} using the {@link RtspServer}. */ /** Tests the {@link RtspMediaPeriod} using the {@link RtspServer}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtspMediaPeriodTest { public final class RtspMediaPeriodTest {
private static final long DEFAULT_TIMEOUT_MS = 8000; 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 com.google.common.collect.ImmutableMap;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspMediaTrack}. */ /** Unit test for {@link RtspMediaTrack}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtspMediaTrackTest { public class RtspMediaTrackTest {
@Test @Test

View file

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

View file

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

View file

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

View file

@ -22,11 +22,9 @@ import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.C;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspSessionTiming}. */ /** Unit test for {@link RtspSessionTiming}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtspSessionTimingTest { public class RtspSessionTimingTest {
@Test @Test
public void parseTiming_withNowLiveTiming() throws Exception { 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 com.google.common.collect.ImmutableList;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspTrackTiming}. */ /** Unit test for {@link RtspTrackTiming}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtspTrackTimingTest { public class RtspTrackTimingTest {
@Test @Test
public void parseTiming_withSeqNumberAndRtpTime() throws Exception { public void parseTiming_withSeqNumberAndRtpTime() throws Exception {

View file

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

View file

@ -24,11 +24,9 @@ import com.google.common.primitives.Bytes;
import java.util.Arrays; import java.util.Arrays;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link TransferRtpDataChannel}. */ /** Unit test for {@link TransferRtpDataChannel}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class TransferRtpDataChannelTest { public class TransferRtpDataChannelTest {
private static final long POLL_TIMEOUT_MS = 8000; 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 com.google.android.exoplayer2.upstream.UdpDataSource;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link UdpDataSourceRtpDataChannel}. */ /** Unit test for {@link UdpDataSourceRtpDataChannel}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class UdpDataSourceRtpDataChannelTest { public class UdpDataSourceRtpDataChannelTest {
@Test @Test

View file

@ -36,11 +36,9 @@ import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
import org.mockito.junit.MockitoJUnit; import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule; import org.mockito.junit.MockitoRule;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtpAc3Reader}. */ /** Unit test for {@link RtpAc3Reader}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class RtpAc3ReaderTest { public final class RtpAc3ReaderTest {
private final RtpPacket frame1fragment1 = 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 com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** /**
* Unit test for creating SmoothStreaming media sources with the {@link DefaultMediaSourceFactory}. * Unit test for creating SmoothStreaming media sources with the {@link DefaultMediaSourceFactory}.
*/ */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class DefaultMediaSourceFactoryTest { public class DefaultMediaSourceFactoryTest {
private static final String URI_MEDIA = "http://exoplayer.dev/video"; 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 com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link SsMediaPeriod}. */ /** Unit tests for {@link SsMediaPeriod}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class SsMediaPeriodTest { public class SsMediaPeriodTest {
@Test @Test

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -29,11 +29,9 @@ import com.google.common.collect.ImmutableList;
import java.util.List; import java.util.List;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit tests for {@link SegmentSpeedProvider}. */ /** Unit tests for {@link SegmentSpeedProvider}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class SegmentSpeedProviderTest { public class SegmentSpeedProviderTest {
private static final SmtaMetadataEntry SMTA_SPEED_8 = 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 com.google.android.exoplayer2.util.MimeTypes;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link Transformer.Builder}. */ /** Unit test for {@link Transformer.Builder}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class TransformerBuilderTest { public class TransformerBuilderTest {
@Test @Test

View file

@ -51,12 +51,10 @@ import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
import org.robolectric.shadows.ShadowMediaCodec; import org.robolectric.shadows.ShadowMediaCodec;
/** Unit test for {@link Transformer}. */ /** Unit test for {@link Transformer}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class TransformerTest { public final class TransformerTest {
private static final String URI_PREFIX = "asset:///media/"; 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 java.util.concurrent.TimeoutException;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RobolectricUtil}. */ /** Unit test for {@link RobolectricUtil}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RobolectricUtilTest { public class RobolectricUtilTest {
@Test @Test
public void createRobolectricConditionVariable_blockWithTimeout_timesOut() 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.Description;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.junit.runners.model.Statement; import org.junit.runners.model.Statement;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link AdditionalFailureInfo}. */ /** Tests for {@link AdditionalFailureInfo}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class AdditionalFailureInfoTest { public final class AdditionalFailureInfoTest {
private final ExpectedException expectedException = new ExpectedException(); private final ExpectedException expectedException = new ExpectedException();

View file

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

View file

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

View file

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

View file

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

View file

@ -27,11 +27,9 @@ import java.util.Arrays;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link FakeDataSource}. */ /** Unit test for {@link FakeDataSource}. */
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public final class FakeDataSourceTest { public final class FakeDataSourceTest {
private static final String URI_STRING = "test://test.test"; 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.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Tests for {@link WebServerDispatcher}. */ /** Tests for {@link WebServerDispatcher}. */
// We use the OkHttp client library for these tests because it's generally nicer to use than Java's // 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 // So instead we just don't test these cases that require passing header combinations that are
// impossible with OkHttp. // impossible with OkHttp.
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class WebServerDispatcherTest { public class WebServerDispatcherTest {
private static int seed; private static int seed;

View file

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