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

Unified Diff: webrtc/sdk/android/instrumentationtests/src/org/webrtc/Camera2CapturerTest.java

Issue 2833773003: Support adding and removing MediaRecorder to camera 2 session. (Closed)
Patch Set: Address comments - 3 Created 3 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
Index: webrtc/sdk/android/instrumentationtests/src/org/webrtc/Camera2CapturerTest.java
diff --git a/webrtc/sdk/android/instrumentationtests/src/org/webrtc/Camera2CapturerTest.java b/webrtc/sdk/android/instrumentationtests/src/org/webrtc/Camera2CapturerTest.java
index a752cf09bc328f6eb83e3fd2e3b2a52a5f751b88..6b6b18d1ed094aaa92cf3b201b22ef08749e5d23 100644
--- a/webrtc/sdk/android/instrumentationtests/src/org/webrtc/Camera2CapturerTest.java
+++ b/webrtc/sdk/android/instrumentationtests/src/org/webrtc/Camera2CapturerTest.java
@@ -25,6 +25,7 @@ import android.support.test.InstrumentationRegistry;
import android.support.test.filters.LargeTest;
import android.support.test.filters.MediumTest;
import android.support.test.filters.SmallTest;
+import java.io.IOException;
import java.util.concurrent.CountDownLatch;
import org.chromium.base.test.BaseJUnit4ClassRunner;
import org.junit.After;
@@ -244,6 +245,12 @@ public class Camera2CapturerTest {
fixtures.cameraEventsInvoked();
}
+ @Test
+ @MediumTest
+ public void testUpdateMediaRecorder() throws InterruptedException, IOException {
+ fixtures.updateMediaRecorder(true /* useSurfaceCapture */);
+ }
+
// Test what happens when attempting to call e.g. switchCamera() after camera has been stopped.
@Test
@MediumTest

Powered by Google App Engine
This is Rietveld 408576698