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

Unified Diff: media/capture/video/android/video_capture_device_android.cc

Issue 2286303003: Video capture Android: enable unittests for Camera2 API (Closed)
Patch Set: jbudorick@s comments Created 4 years, 3 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: media/capture/video/android/video_capture_device_android.cc
diff --git a/media/capture/video/android/video_capture_device_android.cc b/media/capture/video/android/video_capture_device_android.cc
index b56fc7452502aa9ee0d9055bf6e918f9ebfa86c9..cbf372965ead97eb54056efc96ae44972a839911 100644
--- a/media/capture/video/android/video_capture_device_android.cc
+++ b/media/capture/video/android/video_capture_device_android.cc
@@ -383,6 +383,10 @@ void VideoCaptureDeviceAndroid::OnPhotoTaken(
photo_callbacks_.erase(reference_it);
}
+void VideoCaptureDeviceAndroid::ConfigureForTesting() {
+ Java_VideoCapture_setTestMode(AttachCurrentThread(), j_capture_);
+}
+
VideoPixelFormat VideoCaptureDeviceAndroid::GetColorspace() {
JNIEnv* env = AttachCurrentThread();
const int current_capture_colorspace =

Powered by Google App Engine
This is Rietveld 408576698