Add DoNotInstrument annotations to RTSP tests

PiperOrigin-RevId: 377026587
This commit is contained in:
olly 2021-06-02 12:08:32 +01:00 committed by bachinger
parent f40a92281b
commit e8ee4e6e6c
16 changed files with 32 additions and 0 deletions

View file

@ -23,9 +23,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 tests for {@link RtpPacketReorderingQueue}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtpPacketReorderingQueueTest {
private final RtpPacketReorderingQueue reorderingQueue = new RtpPacketReorderingQueue();

View file

@ -20,8 +20,10 @@ 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,9 +25,11 @@ 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,9 +22,11 @@ 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

@ -32,9 +32,11 @@ 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 @MonotonicNonNull RtspClient rtspClient;

View file

@ -23,9 +23,11 @@ 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

@ -28,9 +28,11 @@ import com.google.common.collect.ImmutableList;
import java.util.concurrent.atomic.AtomicBoolean;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.internal.DoNotInstrument;
/** Unit test for {@link RtspMediaPeriod}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class RtspMediaPeriodTest {
private static final RtspClient PLACEHOLDER_RTSP_CLIENT =

View file

@ -32,9 +32,11 @@ 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,9 +39,11 @@ 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,9 +28,11 @@ 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

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

View file

@ -25,9 +25,11 @@ 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,9 +32,11 @@ 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

@ -25,9 +25,11 @@ import java.io.IOException;
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 {
@Test

View file

@ -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;
/** Unit test for {@link UdpDataSourceRtpDataChannel}. */
@RunWith(AndroidJUnit4.class)
@DoNotInstrument
public class UdpDataSourceRtpDataChannelTest {
@Test

View file

@ -36,9 +36,11 @@ 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 =