Home
last modified time | relevance | path

Searched refs:input_api (Results 1 – 18 of 18) sorted by relevance

/third_party/flutter/skia/third_party/externals/angle2/
DPRESUBMIT.py19 def _CheckChangeHasBugField(input_api, output_api): argument
21 bugs = input_api.change.BugsFromDescription()
36 def _CheckCodeGeneration(input_api, output_api): argument
52 code_gen_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
55 cmd = [input_api.python_executable, code_gen_path, '--verify-no-dirty']
56 test_cmd = input_api.Command(name=cmd_name, cmd=cmd, kwargs={}, message=Msg)
57 if input_api.verbose:
59 return input_api.RunTests([test_cmd])
63 def _CheckNewHeaderWithoutGnChange(input_api, output_api): argument
70 return input_api.FilterSourceFile(f, white_list=(r'.+%s' % _HEADER_EXTENSIONS,))
[all …]
/third_party/skia/third_party/externals/tint/
DPRESUBMIT.py24 def _LicenseHeader(input_api): argument
27 current_year = int(input_api.time.strftime('%Y'))
104 def CheckNonInclusiveLanguage(input_api, output_api, source_file_filter=None): argument
108 for f in input_api.AffectedFiles(include_deletes=False,
127 def CheckChange(input_api, output_api): argument
130 results += input_api.canned_checks.CheckChangeHasDescription(
131 input_api, output_api)
132 results += input_api.canned_checks.CheckPatchFormatted(input_api,
135 results += input_api.canned_checks.CheckGNFormatted(input_api, output_api)
136 results += input_api.canned_checks.CheckChangeHasNoCrAndHasOnlyOneEol(
[all …]
/third_party/flutter/skia/
DPRESUBMIT.py52 def _CheckChangeHasEol(input_api, output_api, source_file_filter=None): argument
55 for f in input_api.AffectedSourceFiles(source_file_filter):
56 contents = input_api.ReadFile(f, 'rb')
68 def _JsonChecks(input_api, output_api): argument
71 for affected_file in input_api.AffectedFiles(None):
78 input_api.json.load(open(affected_file_path, 'r'))
91 def _IfDefChecks(input_api, output_api): argument
108 for affected_file in input_api.AffectedSourceFiles(None):
132 def _CopyrightChecks(input_api, output_api, source_file_filter=None): argument
140 for affected_file in input_api.AffectedSourceFiles(source_file_filter):
[all …]
/third_party/skia/
DPRESUBMIT.py31 def _CheckChangeHasEol(input_api, output_api, source_file_filter=None): argument
34 for f in input_api.AffectedSourceFiles(source_file_filter):
35 contents = input_api.ReadFile(f, 'rb')
47 def _JsonChecks(input_api, output_api): argument
50 for affected_file in input_api.AffectedFiles(None):
57 input_api.json.load(open(affected_file_path, 'r'))
70 def _IfDefChecks(input_api, output_api): argument
87 for affected_file in input_api.AffectedSourceFiles(None):
111 def _CopyrightChecks(input_api, output_api, source_file_filter=None): argument
119 for affected_file in input_api.AffectedSourceFiles(source_file_filter):
[all …]
/third_party/skia/third_party/externals/angle2/
DPRESUBMIT.py31 def _CheckCommitMessageFormatting(input_api, output_api): argument
68 git_output = input_api.change.DescriptionText()
180 def _CheckChangeHasBugField(input_api, output_api): argument
182 bugs = input_api.change.BugsFromDescription()
223 def _CheckCodeGeneration(input_api, output_api): argument
239 code_gen_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
242 cmd = [input_api.python_executable, code_gen_path, '--verify-no-dirty']
243 test_cmd = input_api.Command(name=cmd_name, cmd=cmd, kwargs={}, message=Msg)
244 if input_api.verbose:
246 return input_api.RunTests([test_cmd])
[all …]
/third_party/skia/third_party/externals/angle2/infra/specs/
DPRESUBMIT.py12 def _CommonChecks(input_api, output_api): argument
14 angle_root = d(d(input_api.PresubmitLocalPath()))
19 config_path = os.path.join(input_api.PresubmitLocalPath(), 'angle_mb_config.pyl')
22 input_api.Command(
25 input_api.python_executable, gen_script, '--check', '--verbose', '--pyl-files-dir',
26 input_api.PresubmitLocalPath()
30 input_api.Command(
33 input_api.python_executable,
39 kwargs={'cwd': input_api.PresubmitLocalPath()},
44 messages.extend(input_api.RunTests(commands))
[all …]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/
DPRESUBMIT.py76 def _LicenseHeader(input_api): argument
78 current_year = int(input_api.time.strftime('%Y'))
92 def CheckChangeOnUpload(input_api, output_api): argument
94 report.extend(input_api.canned_checks.PanProjectChecks(
95 input_api, output_api, license_header=_LicenseHeader(input_api)))
99 def CheckChangeOnCommit(input_api, output_api): argument
102 report.extend(input_api.canned_checks.PanProjectChecks(
103 input_api, output_api, license_header=_LicenseHeader(input_api)))
104 report.extend(input_api.canned_checks.CheckTreeIsOpen(
105 input_api, output_api,
[all …]
/third_party/flutter/skia/third_party/externals/dawn/
DPRESUBMIT.py19 def _DoClangFormat(input_api, output_api): argument
27 upstream_commit = input_api.change._upstream
58 def _DoCommonChecks(input_api, output_api): argument
60 results.extend(input_api.canned_checks.CheckChangedLUCIConfigs(input_api, output_api))
61 results.extend(input_api.canned_checks.CheckGNFormatted(input_api, output_api))
62 results.extend(_DoClangFormat(input_api, output_api))
65 def CheckChangeOnUpload(input_api, output_api): argument
66 return _DoCommonChecks(input_api, output_api)
68 def CheckChangeOnCommit(input_api, output_api): argument
69 return _DoCommonChecks(input_api, output_api)
/third_party/skia/buildtools/checkdeps/
DPRESUBMIT.py11 def CheckChange(input_api, output_api): argument
13 results.extend(input_api.canned_checks.RunUnitTests(
14 input_api, output_api,
15 [input_api.os_path.join(input_api.PresubmitLocalPath(),
21 def CheckChangeOnUpload(input_api, output_api): argument
22 return CheckChange(input_api, output_api)
26 def CheckChangeOnCommit(input_api, output_api): argument
27 return CheckChange(input_api, output_api)
/third_party/skia/third_party/externals/dawn/
DPRESUBMIT.py22 def _DoCommonChecks(input_api, output_api): argument
25 input_api.canned_checks.CheckChangedLUCIConfigs(input_api, output_api))
27 input_api.canned_checks.CheckPatchFormatted(input_api,
33 def CheckChangeOnUpload(input_api, output_api): argument
34 return _DoCommonChecks(input_api, output_api)
37 def CheckChangeOnCommit(input_api, output_api): argument
38 return _DoCommonChecks(input_api, output_api)
/third_party/flutter/skia/third_party/externals/angle2/infra/config/
DPRESUBMIT.py6 def CheckChangeOnUpload(input_api, output_api): argument
7 return input_api.canned_checks.CheckChangedLUCIConfigs(input_api, output_api)
10 def CheckChangeOnCommit(input_api, output_api): argument
11 return input_api.canned_checks.CheckChangedLUCIConfigs(input_api, output_api)
/third_party/skia/third_party/externals/angle2/infra/config/
DPRESUBMIT.py6 def CheckChangeOnUpload(input_api, output_api): argument
7 return input_api.RunTests(
8 input_api.canned_checks.CheckLucicfgGenOutput(input_api, output_api, 'main.star'))
11 def CheckChangeOnCommit(input_api, output_api): argument
12 return CheckChangeOnUpload(input_api, output_api)
/third_party/skia/third_party/externals/tint/infra/config/
DPRESUBMIT.py18 def CheckChangeOnUpload(input_api, output_api): argument
19 return input_api.canned_checks.CheckChangedLUCIConfigs(
20 input_api, output_api)
23 def CheckChangeOnCommit(input_api, output_api): argument
24 return input_api.canned_checks.CheckChangedLUCIConfigs(
25 input_api, output_api)
/third_party/skia/third_party/externals/dawn/infra/config/
DPRESUBMIT.py18 def CheckChangeOnUpload(input_api, output_api): argument
19 return input_api.canned_checks.CheckChangedLUCIConfigs(
20 input_api, output_api)
23 def CheckChangeOnCommit(input_api, output_api): argument
24 return input_api.canned_checks.CheckChangedLUCIConfigs(
25 input_api, output_api)
/third_party/spirv-tools/
DPRESUBMIT.py34 def CheckChangeOnUpload(input_api, output_api): argument
36 results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
37 results += input_api.canned_checks.CheckChangeLintsClean(
38 input_api, output_api, None, LINT_FILTERS)
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/
DPRESUBMIT.py34 def CheckChangeOnUpload(input_api, output_api): argument
36 results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
37 results += input_api.canned_checks.CheckChangeLintsClean(
38 input_api, output_api, None, LINT_FILTERS)
/third_party/skia/third_party/externals/spirv-tools/
DPRESUBMIT.py34 def CheckChangeOnUpload(input_api, output_api): argument
36 results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
37 results += input_api.canned_checks.CheckChangeLintsClean(
38 input_api, output_api, None, LINT_FILTERS)
/third_party/skia/third_party/externals/angle2/scripts/
Dangle_presubmit_utils_unittest.py34 input_api = InputAPI_mock(commit_msg)
35 return PRESUBMIT._CheckCommitMessageFormatting(input_api, self.output_api)