Add the url attribute to the IceCandidate (Java Wrapper)

The url of the ICE server is added to the IceCandiate class.
This can be used to tell which server this candidate was gathered from.

BUG=webrtc:7128

Review-Url: https://codereview.webrtc.org/2690593002
Cr-Commit-Position: refs/heads/master@{#16593}
This commit is contained in:
zhihuang
2017-02-13 14:04:50 -08:00
committed by Commit bot
parent 02c739f4ef
commit 8586c8ee88
6 changed files with 23 additions and 13 deletions

View File

@ -41,6 +41,7 @@ public class DirectRTCClientTest {
private static final String DUMMY_SDP_MID = "sdpMid";
private static final String DUMMY_SDP = "sdp";
private static final String DUMMY_SERVER_URL = "serverUrl";
public static final int SERVER_WAIT = 100;
public static final int NETWORK_TIMEOUT = 1000;
@ -136,7 +137,7 @@ public class DirectRTCClientTest {
verify(serverEvents, timeout(NETWORK_TIMEOUT))
.onRemoteDescription(isNotNull(SessionDescription.class));
IceCandidate candidate = new IceCandidate(DUMMY_SDP_MID, 0, DUMMY_SDP);
IceCandidate candidate = new IceCandidate(DUMMY_SDP_MID, 0, DUMMY_SDP, DUMMY_SERVER_URL);
server.sendLocalIceCandidate(candidate);
verify(clientEvents, timeout(NETWORK_TIMEOUT))
.onRemoteIceCandidate(isNotNull(IceCandidate.class));