parameters: (input_api, output_api)
return_statement: return []
docstring: Ensures the list of native API header directories is up to date.
docstring_summary: Ensures the list of native API header directories is up to date.
docstring_tokens: Ensures the list of native API header directories is up to date .
function: def _VerifyNativeApiHeadersListIsValid(input_api, output_api):
    """Ensures the list of native API header directories is up to date."""
    non_existing_paths = []
    native_api_full_paths = [
        input_api.os_path.join(input_api.PresubmitLocalPath(),
                               *path.split('/')) for path in API_DIRS]
    for path in native_api_full_paths:
      if not os.path.isdir(path):
        non_existing_paths.append(path)
    if non_existing_paths:
      return [output_api.PresubmitError(
          'Directories to native API headers have changed which has made the '
          'list in PRESUBMIT.py outdated.\nPlease update it to the current '
          'location of our native APIs.',
          non_existing_paths)]
    return []
function_tokens: def _VerifyNativeApiHeadersListIsValid ( input_api , output_api ) : non_existing_paths = [ ] native_api_full_paths = [ input_api . os_path . join ( input_api . PresubmitLocalPath ( ) , * path . split ( '/' ) ) for path in API_DIRS ] for path in native_api_full_paths : if not os . path . isdir ( path ) : non_existing_paths . append ( path ) if non_existing_paths : return [ output_api . PresubmitError ( 'Directories to native API headers have changed which has made the ' 'list in PRESUBMIT.py outdated.\nPlease update it to the current ' 'location of our native APIs.' , non_existing_paths ) ] return [ ]