Add test annotations to AppRTCDemoTest.
After rolling in https://codereview.webrtc.org/1847963004 the AppRTCDemoTest
started running 0 tests due to https://crbug.com/601464. Adding test annotations
makes the tests being executed again.
BUG=chromium:601464
NOTRY=True
Review URL: https://codereview.webrtc.org/1876233002
Cr-Commit-Position: refs/heads/master@{#12325}
diff --git a/webrtc/examples/androidtests/src/org/appspot/apprtc/test/LooperExecutorTest.java b/webrtc/examples/androidtests/src/org/appspot/apprtc/test/LooperExecutorTest.java
index 29ccaef..60d3c1c 100644
--- a/webrtc/examples/androidtests/src/org/appspot/apprtc/test/LooperExecutorTest.java
+++ b/webrtc/examples/androidtests/src/org/appspot/apprtc/test/LooperExecutorTest.java
@@ -16,12 +16,14 @@
import org.appspot.apprtc.util.LooperExecutor;
import android.test.InstrumentationTestCase;
+import android.test.suitebuilder.annotation.SmallTest;
import android.util.Log;
public class LooperExecutorTest extends InstrumentationTestCase {
private static final String TAG = "LooperTest";
private static final int WAIT_TIMEOUT = 5000;
+ @SmallTest
public void testLooperExecutor() throws InterruptedException {
Log.d(TAG, "testLooperExecutor");
final int counter[] = new int[1];
diff --git a/webrtc/examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java b/webrtc/examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java
index ca7c2f9..4c96637 100644
--- a/webrtc/examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java
+++ b/webrtc/examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java
@@ -31,6 +31,7 @@
import android.os.Build;
import android.test.InstrumentationTestCase;
+import android.test.suitebuilder.annotation.SmallTest;
import android.util.Log;
public class PeerConnectionClientTest extends InstrumentationTestCase
@@ -293,6 +294,7 @@
}
}
+ @SmallTest
public void testSetLocalOfferMakesVideoFlowLocally()
throws InterruptedException {
Log.d(TAG, "testSetLocalOfferMakesVideoFlowLocally");
@@ -358,22 +360,27 @@
Log.d(TAG, "testLoopback done.");
}
+ @SmallTest
public void testLoopbackAudio() throws InterruptedException {
doLoopbackTest(createParametersForAudioCall(), false);
}
+ @SmallTest
public void testLoopbackVp8() throws InterruptedException {
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_VP8, false), false);
}
- public void DISABLED_testLoopbackVp9() throws InterruptedException {
+ //@SmallTest
+ public void testLoopbackVp9() throws InterruptedException {
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_VP9, false), false);
}
+ @SmallTest
public void testLoopbackH264() throws InterruptedException {
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_H264, false), false);
}
+ @SmallTest
public void testLoopbackVp8DecodeToTexture() throws InterruptedException {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
Log.i(TAG, "Decode to textures is not supported, requires SDK version 19.");
@@ -382,7 +389,8 @@
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_VP8, false), true);
}
- public void DISABLED_testLoopbackVp9DecodeToTexture() throws InterruptedException {
+ //@SmallTest
+ public void testLoopbackVp9DecodeToTexture() throws InterruptedException {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
Log.i(TAG, "Decode to textures is not supported, requires SDK version 19.");
return;
@@ -390,6 +398,7 @@
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_VP9, false), true);
}
+ @SmallTest
public void testLoopbackH264DecodeToTexture() throws InterruptedException {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
Log.i(TAG, "Decode to textures is not supported, requires SDK version 19.");
@@ -398,6 +407,7 @@
doLoopbackTest(createParametersForVideoCall(VIDEO_CODEC_H264, false), true);
}
+ @SmallTest
public void testLoopbackVp8CaptureToTexture() throws InterruptedException {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
Log.i(TAG, "Encode to textures is not supported. Requires SDK version 19");
@@ -415,6 +425,7 @@
// Test that a call can be setup even if the EGL context used during initialization is
// released before the Video codecs are created. The HW encoder and decoder is setup to use
// textures.
+ @SmallTest
public void testLoopbackEglContextReleasedAfterCreatingPc() throws InterruptedException {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
Log.i(TAG, "Decode to textures is not supported. Requires SDK version 19");
@@ -455,6 +466,7 @@
Log.d(TAG, "testLoopback done.");
}
+ @SmallTest
public void testLoopbackH264CaptureToTexture() throws InterruptedException {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
Log.i(TAG, "Encode to textures is not supported. Requires KITKAT");
@@ -472,6 +484,7 @@
// Checks if default front camera can be switched to back camera and then
// again to front camera.
+ @SmallTest
public void testCameraSwitch() throws InterruptedException {
Log.d(TAG, "testCameraSwitch");
loopback = true;
@@ -518,6 +531,7 @@
// Checks if video source can be restarted - simulate app goes to
// background and back to foreground.
+ @SmallTest
public void testVideoSourceRestart() throws InterruptedException {
Log.d(TAG, "testVideoSourceRestart");
loopback = true;
@@ -565,6 +579,7 @@
}
// Checks if capture format can be changed on fly and decoder can be reset properly.
+ @SmallTest
public void testCaptureFormatChange() throws InterruptedException {
Log.d(TAG, "testCaptureFormatChange");
loopback = true;