function addEntries(volumeNames, entries, opt_callback) {
  if (volumeNames.length == 0) {
    callback(true);
    return;
  }
  var volumeResultPromises = volumeNames.map(function(volume) {
    return sendTestMessage({
      name: 'addEntries',
      volume: volume,
      entries: entries
    });
  });
  var resultPromise = Promise.all(volumeResultPromises);
  if (opt_callback) {
    resultPromise.then(opt_callback.bind(null, true),
                       opt_callback.bind(null, false));
  }
  return resultPromise;
}
/**
 * Adds the givin entries to the target volume(s).
 * @param {Array<string>} volumeNames Names of target volumes.
 * @param {Array<TestEntryInfo>} entries List of entries to be added.
 * @param {function(boolean)=} opt_callback Callback function to be passed the
 *     result of function. The argument is true on success.
 * @return {Promise} Promise to be fulfilled when the entries are added.
 */
Adds the givin entries to the target volume(s).
@param {Array} volumeNames Names of target volumes.
@param {Array} entries List of entries to be added.
@param {function(boolean)=} opt_callback Callback function to be passed the
result of function. The argument is true on success.
@return {Promise} Promise to be fulfilled when the entries are added.
Adds the givin entries to the target volume ( s ) . @param { Array } volumeNames Names of target volumes . @param { Array } entries List of entries to be added . @param { function ( boolean ) = } opt_callback Callback function to be passed the result of function . The argument is true on success . @return { Promise } Promise to be fulfilled when the entries are added .
function addEntries(volumeNames, entries, opt_callback) {
  if (volumeNames.length == 0) {
    callback(true);
    return;
  }
  var volumeResultPromises = volumeNames.map(function(volume) {
    return sendTestMessage({
      name: 'addEntries',
      volume: volume,
      entries: entries
    });
  });
  var resultPromise = Promise.all(volumeResultPromises);
  if (opt_callback) {
    resultPromise.then(opt_callback.bind(null, true),
                       opt_callback.bind(null, false));
  }
  return resultPromise;
}
function addEntries ( volumeNames , entries , opt_callback ) { if ( volumeNames . length == 0 ) { callback ( true ) ; return ; } var volumeResultPromises = volumeNames . map ( function ( volume ) { return sendTestMessage ( { name : 'addEntries' , volume : volume , entries : entries } ) ; } ) ; var resultPromise = Promise . all ( volumeResultPromises ) ; if ( opt_callback ) { resultPromise . then ( opt_callback . bind ( null , true ) , opt_callback . bind ( null , false ) ) ; } return resultPromise ; }
Adds the givin entries to the target volume(s).
Adds the givin entries to the target volume ( s ) .