@Override public synchronized void onIceGatheringChange(IceGatheringState newState) { // It's fine to get a variable number of GATHERING messages before // COMPLETE fires (depending on how long the test runs) so we don't assert // any particular count. if (newState == IceGatheringState.GATHERING) { return; } assertEquals(expectedIceGatheringChanges.removeFirst(), newState); }
@Override public synchronized void onIceGatheringChange(IceGatheringState newState) { //System.out.println("DEBUG: ICE Gathering state " + newState); if (newState == IceGatheringState.GATHERING) { return; } }
public synchronized void expectIceGatheringChange(IceGatheringState newState) { expectedIceGatheringChanges.add(newState); }
@Override public void onIceGatheringChange(IceGatheringState iceGatherState) { if (iceGatherState == IceGatheringState.COMPLETE) { mSdpObserver.iceReady(); } }
public void onIceGatheringChange(IceGatheringState iceGatheringState) {}