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

Unified Diff: talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java

Issue 1323453002: VideoCapturerAndroid: Move to android folder and split out camera enumeration into separate file (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | talk/app/webrtc/java/android/org/webrtc/CameraEnumerationAndroid.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java
diff --git a/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java b/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java
index 5c700ef635d20703f67c7b257fc0e919f1e1e073..54f77c5166d99619b827e465053b2ff20b3f1c0b 100644
--- a/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java
+++ b/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java
@@ -30,7 +30,7 @@ import android.hardware.Camera;
import android.test.ActivityTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import org.webrtc.VideoCapturerAndroid.CaptureFormat;
+import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
import org.webrtc.VideoRenderer.I420Frame;
import java.util.ArrayList;
@@ -173,7 +173,7 @@ public class VideoCapturerAndroidTest extends ActivityTestCase {
// to a Java video renderer using the front facing video capturer.
// It tests both the Java and the C++ layer.
public void testStartFrontFacingVideoCapturer() throws Exception {
- starCapturerAndRender(VideoCapturerAndroid.getNameOfFrontFacingDevice());
+ starCapturerAndRender(CameraEnumerationAndroid.getNameOfFrontFacingDevice());
}
@SmallTest
@@ -184,7 +184,7 @@ public class VideoCapturerAndroidTest extends ActivityTestCase {
if (!HaveTwoCameras()) {
return;
}
- starCapturerAndRender(VideoCapturerAndroid.getNameOfBackFacingDevice());
+ starCapturerAndRender(CameraEnumerationAndroid.getNameOfBackFacingDevice());
}
@SmallTest
@@ -246,14 +246,14 @@ public class VideoCapturerAndroidTest extends ActivityTestCase {
public void testStartStopWithDifferentResolutions() throws Exception {
FakeCapturerObserver observer = new FakeCapturerObserver();
- String deviceName = VideoCapturerAndroid.getDeviceName(0);
+ String deviceName = CameraEnumerationAndroid.getDeviceName(0);
ArrayList<CaptureFormat> formats =
- VideoCapturerAndroid.getSupportedFormats(0);
+ CameraEnumerationAndroid.getSupportedFormats(0);
VideoCapturerAndroid capturer =
VideoCapturerAndroid.create(deviceName, null);
for(int i = 0; i < 3 ; ++i) {
- VideoCapturerAndroid.CaptureFormat format = formats.get(i);
+ CameraEnumerationAndroid.CaptureFormat format = formats.get(i);
capturer.startCapture(format.width, format.height, format.maxFramerate,
getInstrumentation().getContext(), observer);
assertTrue(observer.WaitForCapturerToStart());
@@ -271,13 +271,13 @@ public class VideoCapturerAndroidTest extends ActivityTestCase {
public void testReturnBufferLate() throws Exception {
FakeCapturerObserver observer = new FakeCapturerObserver();
- String deviceName = VideoCapturerAndroid.getDeviceName(0);
+ String deviceName = CameraEnumerationAndroid.getDeviceName(0);
ArrayList<CaptureFormat> formats =
- VideoCapturerAndroid.getSupportedFormats(0);
+ CameraEnumerationAndroid.getSupportedFormats(0);
VideoCapturerAndroid capturer =
VideoCapturerAndroid.create(deviceName, null);
- VideoCapturerAndroid.CaptureFormat format = formats.get(0);
+ CameraEnumerationAndroid.CaptureFormat format = formats.get(0);
capturer.startCapture(format.width, format.height, format.maxFramerate,
getInstrumentation().getContext(), observer);
assertTrue(observer.WaitForCapturerToStart());
« no previous file with comments | « no previous file | talk/app/webrtc/java/android/org/webrtc/CameraEnumerationAndroid.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698