/external/webrtc/ |
D | PRESUBMIT.py | 137 def VerifyNativeApiHeadersListIsValid(input_api, output_api): argument 141 input_api.os_path.join(input_api.PresubmitLocalPath(), 175 def CheckNativeApiHeaderChanges(input_api, output_api): argument 178 source_file_filter = lambda x: input_api.FilterSourceFile( 180 for f in input_api.AffectedSourceFiles(source_file_filter): 197 def CheckNoIOStreamInHeaders(input_api, output_api, argument 201 pattern = input_api.re.compile(r'^#include\s*<iostream>', 202 input_api.re.MULTILINE) 203 file_filter = lambda x: (input_api.FilterSourceFile(x) 205 for f in input_api.AffectedSourceFiles(file_filter): [all …]
|
/external/chromium-trace/catapult/devil/ |
D | PRESUBMIT.py | 11 def _RunPylint(input_api, output_api): argument 12 return input_api.RunTests( 13 input_api.canned_checks.RunPylint( 14 input_api, output_api, pylintrc='pylintrc')) 17 def _RunUnitTests(input_api, output_api): argument 20 return input_api.os_path.join(input_api.PresubmitLocalPath(), 'devil', 23 test_env = dict(input_api.environ) 29 message_type = (output_api.PresubmitError if input_api.is_committing else 32 return input_api.RunTests([ 33 input_api.Command(name='devil/bin/run_py_tests', [all …]
|
/external/openscreen/ |
D | PRESUBMIT.py | 39 def _CheckLicenses(input_api, output_api): argument 46 def _CheckDeps(input_api, output_api): argument 48 deps_checker = DepsChecker(input_api.PresubmitLocalPath()) 49 deps_checker.CheckDirectory(input_api.PresubmitLocalPath()) 125 def _CheckChangeLintsClean(input_api, output_api): argument 127 cpplint = input_api.cpplint 134 f.AbsoluteLocalPath() for f in input_api.AffectedSourceFiles(None) 142 if input_api.is_committing: 151 def _CommonChecks(input_api, output_api): argument 161 results = input_api.canned_checks.PanProjectChecks(input_api, [all …]
|
/external/libyuv/files/ |
D | PRESUBMIT.py | 12 def _RunPythonTests(input_api, output_api): argument 14 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) 24 input_api.canned_checks.GetUnitTestsInDirectory( 25 input_api, 29 return input_api.RunTests(tests, parallel=True) 32 def _CommonChecks(input_api, output_api): argument 35 results.extend(input_api.canned_checks.RunPylint(input_api, output_api, 52 results.extend(_RunPythonTests(input_api, output_api)) 56 def CheckChangeOnUpload(input_api, output_api): argument 58 results.extend(_CommonChecks(input_api, output_api)) [all …]
|
/external/perfetto/ |
D | PRESUBMIT.py | 53 def CheckChangeOnUpload(input_api, output_api): argument 54 return CheckChange(input_api, output_api) 57 def CheckChangeOnCommit(input_api, output_api): argument 58 return CheckChange(input_api, output_api) 61 def CheckBuild(input_api, output_api): argument 66 return input_api.FilterSourceFile( 69 if not input_api.AffectedSourceFiles(build_file_filter): 79 def CheckAndroidBlueprint(input_api, output_api): argument 84 return input_api.FilterSourceFile( 87 if not input_api.AffectedSourceFiles(build_file_filter): [all …]
|
/external/pdfium/ |
D | PRESUBMIT.py | 37 def _CheckUnwantedDependencies(input_api, output_api): argument 49 return input_api.os_path.join(base_path, 'buildtools', 'checkdeps') 51 presubmit_path = input_api.PresubmitLocalPath() 52 presubmit_parent_path = input_api.os_path.dirname(presubmit_path) 54 input_api.os_path.basename(presubmit_parent_path) == "third_party" and \ 55 input_api.os_path.basename(presubmit_path) == "pdfium" 59 presubmit_grandparent_path = input_api.os_path.dirname( 74 for f in input_api.AffectedFiles(): 81 deps_checker = checkdeps.DepsChecker(input_api.PresubmitLocalPath()) 107 def _CheckIncludeOrderForScope(scope, input_api, file_path, changed_linenums): argument [all …]
|
/external/chromium-trace/catapult/systrace/ |
D | PRESUBMIT.py | 6 def CheckChangeOnUpload(input_api, output_api): argument 7 return _CommonChecks(input_api, output_api) 10 def CheckChangeOnCommit(input_api, output_api): argument 11 return _CommonChecks(input_api, output_api) 14 def _CommonChecks(input_api, output_api): argument 16 results += input_api.RunTests(input_api.canned_checks.GetPylint( 17 input_api, output_api, extra_paths_list=_GetPathsToPrepend(input_api), 22 def _GetPathsToPrepend(input_api): argument 23 project_dir = input_api.PresubmitLocalPath() 24 catapult_dir = input_api.os_path.join(project_dir, '..') [all …]
|
/external/chromium-trace/catapult/dependency_manager/ |
D | PRESUBMIT.py | 6 def CheckChangeOnUpload(input_api, output_api): argument 7 return _CommonChecks(input_api, output_api) 10 def CheckChangeOnCommit(input_api, output_api): argument 11 return _CommonChecks(input_api, output_api) 14 def _CommonChecks(input_api, output_api): argument 16 results += input_api.RunTests(input_api.canned_checks.GetPylint( 17 input_api, output_api, extra_paths_list=_GetPathsToPrepend(input_api), 22 def _GetPathsToPrepend(input_api): argument 23 project_dir = input_api.PresubmitLocalPath() 24 catapult_dir = input_api.os_path.join(project_dir, '..') [all …]
|
/external/chromium-trace/catapult/common/py_utils/ |
D | PRESUBMIT.py | 6 def CheckChangeOnUpload(input_api, output_api): argument 7 return _CommonChecks(input_api, output_api) 10 def CheckChangeOnCommit(input_api, output_api): argument 11 return _CommonChecks(input_api, output_api) 14 def _CommonChecks(input_api, output_api): argument 16 results += input_api.RunTests(input_api.canned_checks.GetPylint( 17 input_api, output_api, extra_paths_list=_GetPathsToPrepend(input_api), 22 def _GetPathsToPrepend(input_api): argument 23 project_dir = input_api.PresubmitLocalPath() 24 catapult_dir = input_api.os_path.join(project_dir, '..', '..') [all …]
|
/external/skia/ |
D | PRESUBMIT.py | 49 def _CheckChangeHasEol(input_api, output_api, source_file_filter=None): argument 52 for f in input_api.AffectedSourceFiles(source_file_filter): 53 contents = input_api.ReadFile(f, 'rb') 65 def _JsonChecks(input_api, output_api): argument 68 for affected_file in input_api.AffectedFiles(None): 75 input_api.json.load(open(affected_file_path, 'r')) 88 def _IfDefChecks(input_api, output_api): argument 105 for affected_file in input_api.AffectedSourceFiles(None): 129 def _CopyrightChecks(input_api, output_api, source_file_filter=None): argument 137 for affected_file in input_api.AffectedSourceFiles(source_file_filter): [all …]
|
/external/angle/ |
D | PRESUBMIT.py | 31 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 …]
|
/external/webrtc/tools_webrtc/mb/ |
D | PRESUBMIT.py | 10 def _CommonChecks(input_api, output_api): argument 14 pylint_checks = input_api.canned_checks.GetPylint(input_api, output_api) 15 results.extend(input_api.RunTests(pylint_checks)) 18 results.extend(input_api.canned_checks.RunUnitTestsInDirectory( 19 input_api, output_api, '.', [ r'^.+_unittest\.py$'])) 22 cmd = [input_api.python_executable, 'mb.py', 'validate'] 23 kwargs = {'cwd': input_api.PresubmitLocalPath()} 24 results.extend(input_api.RunTests([ 25 input_api.Command(name='mb_validate', 30 input_api.canned_checks.CheckLongLines( [all …]
|
/external/skqp/ |
D | PRESUBMIT.py | 49 def _CheckChangeHasEol(input_api, output_api, source_file_filter=None): argument 52 for f in input_api.AffectedSourceFiles(source_file_filter): 53 contents = input_api.ReadFile(f, 'rb') 65 def _JsonChecks(input_api, output_api): argument 68 for affected_file in input_api.AffectedFiles(None): 75 input_api.json.load(open(affected_file_path, 'r')) 88 def _IfDefChecks(input_api, output_api): argument 105 for affected_file in input_api.AffectedSourceFiles(None): 129 def _CopyrightChecks(input_api, output_api, source_file_filter=None): argument 137 for affected_file in input_api.AffectedSourceFiles(source_file_filter): [all …]
|
/external/pdfium/fpdfsdk/ |
D | PRESUBMIT.py | 11 def _CheckApiTestFile(input_api, output_api): argument 13 api_test_file = input_api.os_path.normpath('fpdfsdk/fpdf_view_c_api_test.c') 16 return input_api.os_path.normpath(f.LocalPath()) == api_test_file 18 if all([not is_api_test_file(f) for f in input_api.AffectedSourceFiles([])]): 21 src_path = input_api.os_path.dirname(input_api.PresubmitLocalPath()) 22 check_script = input_api.os_path.join( 24 cmd = [input_api.python_executable, check_script] 26 input_api.subprocess.check_output(cmd) 28 except input_api.subprocess.CalledProcessError as error: 33 def CheckChangeOnUpload(input_api, output_api): argument [all …]
|
/external/angle/infra/specs/ |
D | PRESUBMIT.py | 12 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 …]
|
/external/pdfium/public/ |
D | PRESUBMIT.py | 11 def _CheckPublicHeaders(input_api, output_api): argument 13 src_path = input_api.os_path.dirname(input_api.PresubmitLocalPath()) 14 check_script = input_api.os_path.join( 16 cmd = [input_api.python_executable, check_script] 18 input_api.subprocess.check_output(cmd) 20 except input_api.subprocess.CalledProcessError as error: 25 def CheckChangeOnUpload(input_api, output_api): argument 27 results += _CheckPublicHeaders(input_api, output_api) 31 def CheckChangeOnCommit(input_api, output_api): argument 33 results += _CheckPublicHeaders(input_api, output_api)
|
/external/webrtc/tools_webrtc/ |
D | PRESUBMIT.py | 10 def _LicenseHeader(input_api): argument 13 current_year = int(input_api.time.strftime('%Y')) 31 def _CommonChecks(input_api, output_api): argument 34 results.extend(input_api.canned_checks.CheckLicense( 35 input_api, output_api, _LicenseHeader(input_api))) 38 def CheckChangeOnUpload(input_api, output_api): argument 40 results.extend(_CommonChecks(input_api, output_api)) 43 def CheckChangeOnCommit(input_api, output_api): argument 45 results.extend(_CommonChecks(input_api, output_api))
|
/external/pdfium/testing/tools/ |
D | PRESUBMIT.py | 11 def _CommonChecks(input_api, output_api): argument 13 tests.extend(input_api.canned_checks.GetPylint(input_api, output_api)) 17 def CheckChangeOnUpload(input_api, output_api): argument 19 tests.extend(_CommonChecks(input_api, output_api)) 20 return input_api.RunTests(tests) 23 def CheckChangeOnCommit(input_api, output_api): argument 25 tests.extend(_CommonChecks(input_api, output_api)) 26 return input_api.RunTests(tests)
|
/external/webrtc/sdk/android/ |
D | PRESUBMIT.py | 9 def CheckChangeOnUpload(input_api, output_api): argument 11 results.extend(CheckPatchFormatted(input_api, output_api)) 14 def CheckPatchFormatted(input_api, output_api): argument 16 cmd = ['cl', 'format', '--dry-run', input_api.PresubmitLocalPath()] 19 short_path = input_api.basename(input_api.PresubmitLocalPath()) 20 full_path = input_api.os_path.relpath(input_api.PresubmitLocalPath(), 21 input_api.change.RepositoryRoot())
|
/external/perfetto/ui/ |
D | PRESUBMIT.py | 25 def CheckChangeOnUpload(input_api, output_api): argument 26 return CheckChange(input_api, output_api) 29 def CheckChangeOnCommit(input_api, output_api): argument 30 return CheckChange(input_api, output_api) 33 def CheckTslint(input_api, output_api): argument 34 path = input_api.os_path 35 ui_path = input_api.PresubmitLocalPath() 40 repo_root = input_api.change.RepositoryRoot()
|
/external/angle/infra/config/ |
D | PRESUBMIT.py | 6 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)
|
/external/libyuv/files/infra/config/ |
D | PRESUBMIT.py | 10 def CheckChangeOnUpload(input_api, output_api): argument 11 return input_api.canned_checks.CheckChangedLUCIConfigs(input_api, output_api) 14 def CheckChangeOnCommit(input_api, output_api): argument 15 return input_api.canned_checks.CheckChangedLUCIConfigs(input_api, output_api)
|
/external/swiftshader/third_party/SPIRV-Tools/ |
D | PRESUBMIT.py | 34 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)
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/ |
D | PRESUBMIT.py | 34 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)
|
/external/deqp-deps/SPIRV-Tools/ |
D | PRESUBMIT.py | 34 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)
|