/ Note: the ice candidate handlers are special. We can not wrap them in test
  // steps since that seems to cause some kind of starvation that prevents the
  // call of being set up. Unfortunately we cannot report errors in here.
  var onIceCandidateToFirst = function(event) {
    // If event.candidate is null = no more candidates.
    if (event.candidate) {
      var candidate = new RTCIceCandidate(event.candidate);
      gSecondConnection.addIceCandidate(candidate);
    }
  };

  var onIceCandidateToSecon