Lines Matching refs:output_api
49 def _CheckChangeHasEol(input_api, output_api, source_file_filter=None): argument
59 return [output_api.PresubmitPromptWarning(
65 def _JsonChecks(input_api, output_api): argument
82 output_api.PresubmitError(
88 def _IfDefChecks(input_api, output_api): argument
122 output_api.PresubmitError(
129 def _CopyrightChecks(input_api, output_api, source_file_filter=None): argument
142 results.append(output_api.PresubmitError(
147 def _ToolFlags(input_api, output_api): argument
154 results.append(output_api.PresubmitError('`python %s test` failed' % f))
158 def _InfraTests(input_api, output_api): argument
169 results.append(output_api.PresubmitError(
174 def _CheckGNFormatted(input_api, output_api): argument
188 results.append(output_api.PresubmitError(
194 def __init__(self, output_api): argument
195 self.output_api = output_api
198 self.old_warning = self.output_api.PresubmitPromptWarning
199 self.output_api.PresubmitPromptWarning = self.output_api.PresubmitError
200 return self.output_api
202 self.output_api.PresubmitPromptWarning = self.old_warning
205 def _CommonChecks(input_api, output_api): argument
218 input_api, output_api, source_file_filter=sources))
219 with _WarningsAsErrors(output_api):
221 input_api, output_api, source_file_filter=sources))
223 input_api, output_api, source_file_filter=sources))
224 results.extend(_JsonChecks(input_api, output_api))
225 results.extend(_IfDefChecks(input_api, output_api))
226 results.extend(_CopyrightChecks(input_api, output_api,
228 results.extend(_ToolFlags(input_api, output_api))
232 def CheckChangeOnUpload(input_api, output_api): argument
239 results.extend(_CommonChecks(input_api, output_api))
242 results.extend(_InfraTests(input_api, output_api))
244 results.extend(_CheckGNFormatted(input_api, output_api))
248 def _CheckTreeStatus(input_api, output_api, json_url): argument
257 input_api, output_api, json_url=json_url)
271 output_api.PresubmitPromptWarning(
321 def _CheckOwnerIsInAuthorsFile(input_api, output_api): argument
345 output_api.PresubmitError(
358 def _CheckLGTMsForPublicAPI(input_api, output_api): argument
421 output_api.PresubmitError(
438 def PostUploadHook(cl, change, output_api): argument
482 output_api.PresubmitNotifyResult(
495 output_api.PresubmitNotifyResult(
506 output_api.PresubmitNotifyResult(
513 output_api.PresubmitNotifyResult(
520 output_api.PresubmitNotifyResult(
532 def CheckChangeOnCommit(input_api, output_api): argument
542 results.extend(_CommonChecks(input_api, output_api))
544 _CheckTreeStatus(input_api, output_api, json_url=(
546 results.extend(_CheckLGTMsForPublicAPI(input_api, output_api))
547 results.extend(_CheckOwnerIsInAuthorsFile(input_api, output_api))
551 input_api.canned_checks.CheckDoNotSubmit(input_api, output_api))