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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 pcClient.addRemoteIceCandidate(candidate); | 143 pcClient.addRemoteIceCandidate(candidate); |
144 } | 144 } |
145 }); | 145 }); |
146 } | 146 } |
147 iceCandidates.add(candidate); | 147 iceCandidates.add(candidate); |
148 iceCandidateEvent.notifyAll(); | 148 iceCandidateEvent.notifyAll(); |
149 } | 149 } |
150 } | 150 } |
151 | 151 |
152 @Override | 152 @Override |
| 153 public void onIceCandidatesRemoved(final IceCandidate[] candidates) { |
| 154 // TODO(honghaiz): Add this for tests. |
| 155 } |
| 156 |
| 157 @Override |
153 public void onIceConnected() { | 158 public void onIceConnected() { |
154 Log.d(TAG, "ICE Connected"); | 159 Log.d(TAG, "ICE Connected"); |
155 synchronized(iceConnectedEvent) { | 160 synchronized(iceConnectedEvent) { |
156 isIceConnected = true; | 161 isIceConnected = true; |
157 iceConnectedEvent.notifyAll(); | 162 iceConnectedEvent.notifyAll(); |
158 } | 163 } |
159 } | 164 } |
160 | 165 |
161 @Override | 166 @Override |
162 public void onIceDisconnected() { | 167 public void onIceDisconnected() { |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 assertTrue("Remote video frames were not rendered after capture format cha
nge.", | 608 assertTrue("Remote video frames were not rendered after capture format cha
nge.", |
604 remoteRenderer.waitForFramesRendered(WAIT_TIMEOUT)); | 609 remoteRenderer.waitForFramesRendered(WAIT_TIMEOUT)); |
605 } | 610 } |
606 | 611 |
607 pcClient.close(); | 612 pcClient.close(); |
608 assertTrue(waitForPeerConnectionClosed(WAIT_TIMEOUT)); | 613 assertTrue(waitForPeerConnectionClosed(WAIT_TIMEOUT)); |
609 Log.d(TAG, "testCaptureFormatChange done."); | 614 Log.d(TAG, "testCaptureFormatChange done."); |
610 } | 615 } |
611 | 616 |
612 } | 617 } |
OLD | NEW |