lib/webrtc-8d2248ff/PRESUBMIT.py
def _CheckNativeApiHeaderChanges(input_api, output_api):
  """Checks to remind proper changing of native APIs."""
  files = []
  for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile):
    if f.LocalPath().endswith('.h'):
      for path in API_DIRS:
        if os.path.dirname(f.LocalPath()) == path:
          files.append(f)

  if files:
    return [output_api.PresubmitNotifyResult(api_change_msg, files)]
  return []
Checks to remind proper changing of native APIs.
Checks to remind proper changing of native APIs.
Checks to remind proper changing of native APIs .
def _CheckNativeApiHeaderChanges(input_api, output_api):
  files = []
  for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile):
    if f.LocalPath().endswith('.h'):
      for path in API_DIRS:
        if os.path.dirname(f.LocalPath()) == path:
          files.append(f)
  if files:
    return [output_api.PresubmitNotifyResult(api_change_msg, files)]
  return []
def _CheckNativeApiHeaderChanges ( input_api , output_api ) : files = [ ] for f in input_api . AffectedSourceFiles ( input_api . FilterSourceFile ) : if f . LocalPath ( ) . endswith ( '.h' ) : for path in API_DIRS : if os . path . dirname ( f . LocalPath ( ) ) == path : files . append ( f ) if files : return [ output_api . PresubmitNotifyResult ( api_change_msg , files ) ] return [ ]
Checks to remind proper changing of native APIs.
Checks to remind proper changing of native APIs .
"""Checks to remind proper changing of native APIs."""
input_api
output_api