setConfiguration_(
      opt_iframeId, opt_oneSidedHandshake, opt_channelName,
      opt_innerProtocolVersion, opt_outerProtocolVersion,
      opt_randomChannelNames) {
    const cfg = {};
    if (opt_iframeId) {
      cfg[CfgFields.IFRAME_ID] = opt_iframeId;
    }
    cfg[CfgFields.PEER_URI] = 'testdata/inner_peer.html';
    if (!opt_randomChannelNames) {
      const channelName = opt_channelName || 'test_channel' + uniqueId++;
      cfg[CfgFields.CHANNEL_NAME] = channelName;
    }
    cfg[CfgFields.LOCAL_POLL_URI] = 'does-not-exist.html';
    cfg[CfgFields.PEER_POLL_URI] = 'does-not-exist.html';
    cfg[CfgFields.ONE_SIDED_HANDSHAKE] = !!opt_oneSidedHandshake;
    cfg[CfgFields.NATIVE_TRANSPORT_PROTOCOL_VERSION] = opt_outerProtocolVersion;
    function resolveUri(fieldName) {
      cfg[fieldName] =
          Uri.resolve(window.location.href, cfg[fieldName]).toString();
    }
    resolveUri(CfgFields.PEER_URI);
    resolveUri(CfgFields.LOCAL_POLL_URI);
    resolveUri(CfgFields.PEER_POLL_URI);
    this.outerFrameCfg_ = cfg;
    this.innerFrameCfg_ = object.clone(cfg);
    this.innerFrameCfg_[CfgFields.NATIVE_TRANSPORT_PROTOCOL_VERSION] =
        opt_innerProtocolVersion;
  }
Sets up the configuration objects for the inner and outer frames.
@param {string=} opt_iframeId If present, the ID of the iframe to use,
    otherwise, tells the channel to generate an iframe ID.
@param {boolean=} opt_oneSidedHandshake Whether the one sided handshake
    config option should be set.
@param {string=} opt_channelName The name of the channel to use, or null
    to generate one.
@param {number=} opt_innerProtocolVersion The native transport protocol
    version used in the inner iframe.
@param {number=} opt_outerProtocolVersion The native transport protocol
    version used in the outer iframe.
@param {boolean=} opt_randomChannelNames Whether the different ends of the
    channel should be allowed to pick differing, random names.
@return {string} The name of the created channel.
@private
@suppress {missingReturn} suppression added to enable type checking