Index: webrtc/api/androidtests/src/org/webrtc/Camera1CapturerUsingTexturesTest.java |
diff --git a/webrtc/api/androidtests/src/org/webrtc/Camera1CapturerUsingTexturesTest.java b/webrtc/api/androidtests/src/org/webrtc/Camera1CapturerUsingTexturesTest.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4f8770fac01a404c92720a4d6e065d86b6f9de20 |
--- /dev/null |
+++ b/webrtc/api/androidtests/src/org/webrtc/Camera1CapturerUsingTexturesTest.java |
@@ -0,0 +1,106 @@ |
+/* |
+ * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
+ * |
+ * Use of this source code is governed by a BSD-style license |
+ * that can be found in the LICENSE file in the root of the source |
+ * tree. An additional intellectual property rights grant can be found |
+ * in the file PATENTS. All contributing project authors may |
+ * be found in the AUTHORS file in the root of the source tree. |
+ */ |
+ |
+package org.webrtc; |
+ |
+import android.test.suitebuilder.annotation.MediumTest; |
+import android.test.suitebuilder.annotation.SmallTest; |
+import android.util.Log; |
+ |
+import org.webrtc.CameraEnumerationAndroid.CaptureFormat; |
+ |
+public class Camera1CapturerUsingTexturesTest extends Camera1CapturerTest { |
+ @Override |
+ protected boolean isCapturingToTexture() { |
+ return true; |
+ } |
+ |
+ // Camera1 only tests |
+ @SmallTest |
+ public void testStartWhileCameraIsAlreadyOpenAndCloseCamera() throws InterruptedException { |
+ super.testStartWhileCameraIsAlreadyOpenAndCloseCamera(); |
+ } |
+ |
+ @SmallTest |
+ public void startWhileCameraIsAlreadyOpenAndStop() throws InterruptedException { |
+ super.startWhileCameraIsAlreadyOpenAndStop(); |
+ } |
+ |
+ // Common tests |
+ @SmallTest |
+ public void testSwitchVideoCapturer() throws InterruptedException { |
+ super.testSwitchVideoCapturer(); |
+ } |
+ |
+ @SmallTest |
+ public void testCreateAndRelease() { |
+ super.testCreateAndRelease(); |
+ } |
+ |
+ @SmallTest |
+ public void testCreateNonExistingCamera() { |
+ super.testCreateNonExistingCamera(); |
+ } |
+ |
+ @SmallTest |
+ public void testStartVideoCapturer() throws InterruptedException { |
+ super.testStartVideoCapturer(); |
+ } |
+ |
+ @MediumTest |
+ public void testCameraEvents() throws InterruptedException { |
+ super.testCameraEvents(); |
+ } |
+ |
+ @SmallTest |
+ public void testStopRestartVideoSource() throws InterruptedException { |
+ super.testStopRestartVideoSource(); |
+ } |
+ |
+ @SmallTest |
+ public void testStartStopWithDifferentResolutions() throws InterruptedException { |
+ super.testStartStopWithDifferentResolutions(); |
+ } |
+ |
+ @SmallTest |
+ public void testReturnBufferLate() throws InterruptedException { |
+ super.testReturnBufferLate(); |
+ } |
+ |
+ @MediumTest |
+ public void testReturnBufferLateEndToEnd() throws InterruptedException { |
+ super.testReturnBufferLateEndToEnd(); |
+ } |
+ |
+ @MediumTest |
+ public void testCameraFreezedEventOnBufferStarvation() throws InterruptedException { |
+ super.testCameraFreezedEventOnBufferStarvation(); |
+ } |
+ |
+ @MediumTest |
+ public void testScaleCameraOutput() throws InterruptedException { |
+ super.testScaleCameraOutput(); |
+ } |
+ |
+ @SmallTest |
+ public void testStartFrontFacingVideoCapturer() throws InterruptedException { |
+ super.testStartFrontFacingVideoCapturer(); |
+ } |
+ |
+ @SmallTest |
+ public void testStartBackFacingVideoCapturer() throws InterruptedException { |
+ super.testStartBackFacingVideoCapturer(); |
+ } |
+ |
+ @MediumTest |
+ public void testCameraCallsAfterStop() throws InterruptedException { |
+ super.testCameraCallsAfterStop(); |
+ } |
+} |