lib/webrtc-8d2248ff/PRESUBMIT.py
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 []
Ensures the list of native API header directories is up to date.
Ensures the list of native API header directories is up to date.
Ensures the list of native API header directories is up to date .
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 []
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 [ ]
Ensures the list of native API header directories is up to date.
Ensures the list of native API header directories is up to date .
"""Ensures the list of native API header directories is up to date."""
input_api
output_api