| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 import org.webrtc.MediaCodecVideoEncoder; | 26 import org.webrtc.MediaCodecVideoEncoder; |
| 27 import org.webrtc.PeerConnection; | 27 import org.webrtc.PeerConnection; |
| 28 import org.webrtc.PeerConnectionFactory; | 28 import org.webrtc.PeerConnectionFactory; |
| 29 import org.webrtc.SessionDescription; | 29 import org.webrtc.SessionDescription; |
| 30 import org.webrtc.StatsReport; | 30 import org.webrtc.StatsReport; |
| 31 import org.webrtc.VideoRenderer; | 31 import org.webrtc.VideoRenderer; |
| 32 | 32 |
| 33 import java.util.LinkedList; | 33 import java.util.LinkedList; |
| 34 import java.util.List; | 34 import java.util.List; |
| 35 import java.util.concurrent.CountDownLatch; | 35 import java.util.concurrent.CountDownLatch; |
| 36 import java.util.concurrent.Executor; | |
| 37 import java.util.concurrent.ExecutorService; | 36 import java.util.concurrent.ExecutorService; |
| 38 import java.util.concurrent.Executors; | 37 import java.util.concurrent.Executors; |
| 39 import java.util.concurrent.TimeUnit; | 38 import java.util.concurrent.TimeUnit; |
| 40 | 39 |
| 41 public class PeerConnectionClientTest extends InstrumentationTestCase | 40 public class PeerConnectionClientTest extends InstrumentationTestCase |
| 42 implements PeerConnectionEvents { | 41 implements PeerConnectionEvents { |
| 43 private static final String TAG = "RTCClientTest"; | 42 private static final String TAG = "RTCClientTest"; |
| 44 private static final int ICE_CONNECTION_WAIT_TIMEOUT = 10000; | 43 private static final int ICE_CONNECTION_WAIT_TIMEOUT = 10000; |
| 45 private static final int WAIT_TIMEOUT = 7000; | 44 private static final int WAIT_TIMEOUT = 7000; |
| 46 private static final int CAMERA_SWITCH_ATTEMPTS = 3; | 45 private static final int CAMERA_SWITCH_ATTEMPTS = 3; |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 assertTrue("Remote video frames were not rendered after capture format cha
nge.", | 665 assertTrue("Remote video frames were not rendered after capture format cha
nge.", |
| 667 remoteRenderer.waitForFramesRendered(WAIT_TIMEOUT)); | 666 remoteRenderer.waitForFramesRendered(WAIT_TIMEOUT)); |
| 668 } | 667 } |
| 669 | 668 |
| 670 pcClient.close(); | 669 pcClient.close(); |
| 671 assertTrue(waitForPeerConnectionClosed(WAIT_TIMEOUT)); | 670 assertTrue(waitForPeerConnectionClosed(WAIT_TIMEOUT)); |
| 672 Log.d(TAG, "testCaptureFormatChange done."); | 671 Log.d(TAG, "testCaptureFormatChange done."); |
| 673 } | 672 } |
| 674 | 673 |
| 675 } | 674 } |
| OLD | NEW |