OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 @MediumTest | 292 @MediumTest |
293 // This test that CameraEventsHandler.onError is triggered if video buffers ar
e not returned to | 293 // This test that CameraEventsHandler.onError is triggered if video buffers ar
e not returned to |
294 // the capturer. | 294 // the capturer. |
295 public void testCameraErrorEventOnBufferStarvation() throws InterruptedExcepti
on { | 295 public void testCameraErrorEventOnBufferStarvation() throws InterruptedExcepti
on { |
296 VideoCapturerAndroidTestFixtures.CameraEvents cameraEvents = | 296 VideoCapturerAndroidTestFixtures.CameraEvents cameraEvents = |
297 VideoCapturerAndroidTestFixtures.createCameraEvents(); | 297 VideoCapturerAndroidTestFixtures.createCameraEvents(); |
298 VideoCapturerAndroid capturer = VideoCapturerAndroid.create("", cameraEvents
); | 298 VideoCapturerAndroid capturer = VideoCapturerAndroid.create("", cameraEvents
); |
299 VideoCapturerAndroidTestFixtures.cameraErrorEventOnBufferStarvation(capturer
, | 299 VideoCapturerAndroidTestFixtures.cameraErrorEventOnBufferStarvation(capturer
, |
300 cameraEvents, getInstrumentation().getContext()); | 300 cameraEvents, getInstrumentation().getContext()); |
301 } | 301 } |
| 302 |
| 303 @MediumTest |
| 304 // This test that frames forwarded to a renderer is scaled if onOutputFormatRe
quest is |
| 305 // called. This test both Java and C++ parts of of the stack. |
| 306 public void testScaleCameraOutput() throws InterruptedException { |
| 307 VideoCapturerAndroid capturer = VideoCapturerAndroid.create("", null); |
| 308 VideoCapturerAndroidTestFixtures.scaleCameraOutput(capturer); |
| 309 } |
| 310 |
| 311 @MediumTest |
| 312 // This test that frames forwarded to a renderer is scaled if onOutputFormatRe
quest is |
| 313 // called. This test both Java and C++ parts of of the stack. |
| 314 public void testScaleCameraOutputUsingTextures() throws InterruptedException { |
| 315 VideoCapturerAndroid capturer = VideoCapturerAndroid.create("", null, EGL10.
EGL_NO_CONTEXT); |
| 316 VideoCapturerAndroidTestFixtures.scaleCameraOutput(capturer); |
| 317 } |
302 } | 318 } |
OLD | NEW |