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
143 results.append(output_api.PresubmitError(
148 def _InfraTests(input_api, output_api): argument
159 results.append(output_api.PresubmitError(
164 def _CheckGNFormatted(input_api, output_api): argument
178 return [output_api.PresubmitError(
190 results.append(output_api.PresubmitError(
195 def _CheckGitConflictMarkers(input_api, output_api): argument
206 output_api.PresubmitError(
212 def _CheckIncludesFormatted(input_api, output_api): argument
219 return [output_api.PresubmitError('`%s` failed' % ' '.join(cmd))]
224 def __init__(self, output_api): argument
225 self.output_api = output_api
228 self.old_warning = self.output_api.PresubmitPromptWarning
229 self.output_api.PresubmitPromptWarning = self.output_api.PresubmitError
230 return self.output_api
232 self.output_api.PresubmitPromptWarning = self.old_warning
235 def _CheckDEPSValid(input_api, output_api): argument
249 results.append(output_api.PresubmitError(e.output))
253 def _CommonChecks(input_api, output_api): argument
266 input_api, output_api, source_file_filter=sources))
267 with _WarningsAsErrors(output_api):
269 input_api, output_api, source_file_filter=sources))
271 input_api, output_api, source_file_filter=sources))
272 results.extend(_JsonChecks(input_api, output_api))
273 results.extend(_IfDefChecks(input_api, output_api))
274 results.extend(_CopyrightChecks(input_api, output_api,
276 results.extend(_CheckDEPSValid(input_api, output_api))
277 results.extend(_CheckIncludesFormatted(input_api, output_api))
278 results.extend(_CheckGNFormatted(input_api, output_api))
279 results.extend(_CheckGitConflictMarkers(input_api, output_api))
283 def CheckChangeOnUpload(input_api, output_api): argument
286 results.extend(_CommonChecks(input_api, output_api))
289 results.extend(_InfraTests(input_api, output_api))
290 results.extend(_CheckReleaseNotesForPublicAPI(input_api, output_api))
325 def _CheckOwnerIsInAuthorsFile(input_api, output_api): argument
349 output_api.PresubmitError(
362 def _CheckReleaseNotesForPublicAPI(input_api, output_api): argument
380 results.append(output_api.PresubmitPromptWarning(
387 def _CheckLGTMsForPublicAPI(input_api, output_api): argument
445 output_api.PresubmitError(
455 def PostUploadHook(gerrit, change, output_api): argument
494 output_api.PresubmitNotifyResult(
507 output_api.PresubmitNotifyResult(
519 def CheckChangeOnCommit(input_api, output_api): argument
522 results.extend(_CommonChecks(input_api, output_api))
523 results.extend(_CheckLGTMsForPublicAPI(input_api, output_api))
524 results.extend(_CheckOwnerIsInAuthorsFile(input_api, output_api))
528 input_api.canned_checks.CheckDoNotSubmit(input_api, output_api))