• Home
  • Raw
  • Download

Lines Matching refs:output_api

31 def _CheckChangeHasEol(input_api, output_api, source_file_filter=None):  argument
41 return [output_api.PresubmitPromptWarning(
47 def _JsonChecks(input_api, output_api): argument
64 output_api.PresubmitError(
70 def _IfDefChecks(input_api, output_api): argument
104 output_api.PresubmitError(
111 def _CopyrightChecks(input_api, output_api, source_file_filter=None): argument
125 results.append(output_api.PresubmitError(
130 def _InfraTests(input_api, output_api): argument
141 results.append(output_api.PresubmitError(
146 def _CheckGNFormatted(input_api, output_api): argument
160 return [output_api.PresubmitError(
172 results.append(output_api.PresubmitError(
177 def _CheckGitConflictMarkers(input_api, output_api): argument
188 output_api.PresubmitError(
194 def _CheckIncludesFormatted(input_api, output_api): argument
201 return [output_api.PresubmitError('`%s` failed' % ' '.join(cmd))]
206 def __init__(self, output_api): argument
207 self.output_api = output_api
210 self.old_warning = self.output_api.PresubmitPromptWarning
211 self.output_api.PresubmitPromptWarning = self.output_api.PresubmitError
212 return self.output_api
214 self.output_api.PresubmitPromptWarning = self.old_warning
217 def _CheckDEPSValid(input_api, output_api): argument
231 results.append(output_api.PresubmitError(e.output))
235 def _RegenerateAllExamplesCPP(input_api, output_api): argument
243 return [output_api.PresubmitError('`%s` failed' % ' '.join(cmd))]
249 results += [output_api.PresubmitError(
258 def _CommonChecks(input_api, output_api): argument
271 input_api, output_api, source_file_filter=sources))
272 with _WarningsAsErrors(output_api):
274 input_api, output_api, source_file_filter=sources))
276 input_api, output_api, source_file_filter=sources))
277 results.extend(_JsonChecks(input_api, output_api))
278 results.extend(_IfDefChecks(input_api, output_api))
279 results.extend(_CopyrightChecks(input_api, output_api,
281 results.extend(_CheckDEPSValid(input_api, output_api))
282 results.extend(_CheckIncludesFormatted(input_api, output_api))
283 results.extend(_CheckGNFormatted(input_api, output_api))
284 results.extend(_CheckGitConflictMarkers(input_api, output_api))
285 results.extend(_RegenerateAllExamplesCPP(input_api, output_api))
289 def CheckChangeOnUpload(input_api, output_api): argument
292 results.extend(_CommonChecks(input_api, output_api))
295 results.extend(_InfraTests(input_api, output_api))
296 results.extend(_CheckReleaseNotesForPublicAPI(input_api, output_api))
331 def _CheckReleaseNotesForPublicAPI(input_api, output_api): argument
349 results.append(output_api.PresubmitPromptWarning(
355 def PostUploadHook(gerrit, change, output_api): argument
394 output_api.PresubmitNotifyResult(
406 def CheckChangeOnCommit(input_api, output_api): argument
409 results.extend(_CommonChecks(input_api, output_api))
413 input_api.canned_checks.CheckDoNotSubmit(input_api, output_api))