Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Unified Diff: webrtc/examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java

Issue 1876233002: Add test annotations to AppRTCDemoTest. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/examples/androidtests/src/org/appspot/apprtc/test/LooperExecutorTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java
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 ca7c2f937f78163be2ac6def7503a6c6fc659328..4c966378b0f0b68dacc22caa7c0b19ad2f8fec25 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 org.webrtc.VideoRenderer;
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 @@ public class PeerConnectionClientTest extends InstrumentationTestCase
}
}
+ @SmallTest
public void testSetLocalOfferMakesVideoFlowLocally()
throws InterruptedException {
Log.d(TAG, "testSetLocalOfferMakesVideoFlowLocally");
@@ -358,22 +360,27 @@ public class PeerConnectionClientTest extends InstrumentationTestCase
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 @@ public class PeerConnectionClientTest extends InstrumentationTestCase
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 @@ public class PeerConnectionClientTest extends InstrumentationTestCase
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 @@ public class PeerConnectionClientTest extends InstrumentationTestCase
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 @@ public class PeerConnectionClientTest extends InstrumentationTestCase
// 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 @@ public class PeerConnectionClientTest extends InstrumentationTestCase
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 @@ public class PeerConnectionClientTest extends InstrumentationTestCase
// 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 @@ public class PeerConnectionClientTest extends InstrumentationTestCase
// 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 @@ public class PeerConnectionClientTest extends InstrumentationTestCase
}
// 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;
« no previous file with comments | « webrtc/examples/androidtests/src/org/appspot/apprtc/test/LooperExecutorTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698