function onGetMetadataRequested(options, onSuccess, onError) {
  if (options.fileSystemId !== test_util.FILE_SYSTEM_ID) {
    onError('SECURITY');  // enum ProviderError.
    return;
  }

  if (options.entryPath === '/') {
    onSuccess(TESTING_ROOT);
    return;
  }

  if (options.entryPath === '/' + TESTING_FILE.name) {
    onSuccess(TESTING_FILE);
    return;
  }

  if (options.entryPath === '/' + TESTING_WRONG_TIME_FILE.name) {
    onSuccess(TESTING_WRONG_TIME_FILE);
    return;
  }

  if (options.entryPath === '/' + TESTING_ONLY_BASIC_FILE_NAME) {
    onSuccess(TESTING_ONLY_BASIC_FILE);
    return;
  }

  if (options.entryPath === '/' + TESTING_ONLY_SIZE_FILE_NAME) {
    onSuccess(TESTING_ONLY_SIZE_FILE);
    return;
  }

  onError('NOT_FOUND');  // enum ProviderError.
}
/**
 * Returns metadata for a requested entry.
 *
 * @param {GetMetadataRequestedOptions} options Options.
 * @param {function(Object)} onSuccess Success callback with metadata passed
 *     an argument.
 * @param {function(string)} onError Error callback with an error code.
 */
Returns metadata for a requested entry.
@param {GetMetadataRequestedOptions} options Options.
@param {function(Object)} onSuccess Success callback with metadata passed
an argument.
@param {function(string)} onError Error callback with an error code.
Returns metadata for a requested entry . @param { GetMetadataRequestedOptions } options Options . @param { function ( Object ) } onSuccess Success callback with metadata passed an argument . @param { function ( string ) } onError Error callback with an error code .
function onGetMetadataRequested(options, onSuccess, onError) {
  if (options.fileSystemId !== test_util.FILE_SYSTEM_ID) {
    onError('SECURITY');  
    return;
  }
  if (options.entryPath === '/') {
    onSuccess(TESTING_ROOT);
    return;
  }
  if (options.entryPath === '/' + TESTING_FILE.name) {
    onSuccess(TESTING_FILE);
    return;
  }
  if (options.entryPath === '/' + TESTING_WRONG_TIME_FILE.name) {
    onSuccess(TESTING_WRONG_TIME_FILE);
    return;
  }
  if (options.entryPath === '/' + TESTING_ONLY_BASIC_FILE_NAME) {
    onSuccess(TESTING_ONLY_BASIC_FILE);
    return;
  }
  if (options.entryPath === '/' + TESTING_ONLY_SIZE_FILE_NAME) {
    onSuccess(TESTING_ONLY_SIZE_FILE);
    return;
  }
  onError('NOT_FOUND');  
}
function onGetMetadataRequested ( options , onSuccess , onError ) { if ( options . fileSystemId !== test_util . FILE_SYSTEM_ID ) { onError ( 'SECURITY' ) ; return ; } if ( options . entryPath === '/' ) { onSuccess ( TESTING_ROOT ) ; return ; } if ( options . entryPath === '/' + TESTING_FILE . name ) { onSuccess ( TESTING_FILE ) ; return ; } if ( options . entryPath === '/' + TESTING_WRONG_TIME_FILE . name ) { onSuccess ( TESTING_WRONG_TIME_FILE ) ; return ; } if ( options . entryPath === '/' + TESTING_ONLY_BASIC_FILE_NAME ) { onSuccess ( TESTING_ONLY_BASIC_FILE ) ; return ; } if ( options . entryPath === '/' + TESTING_ONLY_SIZE_FILE_NAME ) { onSuccess ( TESTING_ONLY_SIZE_FILE ) ; return ; } onError ( 'NOT_FOUND' ) ; }
Returns metadata for a requested entry.
Returns metadata for a requested entry .
// enum ProviderError. // enum ProviderError.