mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Add DoNotInstrument annotations to RTSP tests
PiperOrigin-RevId: 377026587
This commit is contained in:
parent
f40a92281b
commit
e8ee4e6e6c
16 changed files with 32 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in a new issue