/external/chromium-trace/catapult/telemetry/ |
D | PRESUBMIT.py | 6 def _CommonChecks(input_api, output_api): argument 9 results += input_api.RunTests(input_api.canned_checks.GetPylint( 10 input_api, output_api, extra_paths_list=_GetPathsToPrepend(input_api), 13 input_api, output_api, deprecated_code='GetChromiumSrcDir()', 18 def _RunArgs(args, input_api): argument 19 p = input_api.subprocess.Popen(args, stdout=input_api.subprocess.PIPE, 20 stderr=input_api.subprocess.STDOUT) 25 def _ValidateDependenciesFile(input_api, output_api, dependencies_path): argument 32 telemetry_dir = input_api.PresubmitLocalPath() 33 for f in input_api.AffectedFiles(): [all …]
|
/external/webrtc/ |
D | PRESUBMIT.py | 66 def _VerifyNativeApiHeadersListIsValid(input_api, output_api): argument 70 input_api.os_path.join(input_api.PresubmitLocalPath(), 84 def _CheckNativeApiHeaderChanges(input_api, output_api): argument 87 for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile): 111 def _CheckNoIOStreamInHeaders(input_api, output_api): argument 114 pattern = input_api.re.compile(r'^#include\s*<iostream>', 115 input_api.re.MULTILINE) 116 for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile): 119 contents = input_api.ReadFile(f) 132 def _CheckNoFRIEND_TEST(input_api, output_api): argument [all …]
|
/external/v8/ |
D | PRESUBMIT.py | 63 def _V8PresubmitChecks(input_api, output_api): argument 66 sys.path.append(input_api.os_path.join( 67 input_api.PresubmitLocalPath(), 'tools')) 74 if not CppLintProcessor().Run(input_api.PresubmitLocalPath()): 76 if not SourceProcessor().Run(input_api.PresubmitLocalPath()): 80 if not CheckStatusFiles(input_api.PresubmitLocalPath()): 82 results.extend(CheckAuthorizedAuthor(input_api, output_api)) 86 def _CheckUnwantedDependencies(input_api, output_api): argument 96 sys.path = sys.path + [input_api.os_path.join( 97 input_api.PresubmitLocalPath(), 'buildtools', 'checkdeps')] [all …]
|
/external/chromium-trace/catapult/devil/ |
D | PRESUBMIT.py | 12 def _RunPylint(input_api, output_api): argument 13 return input_api.RunTests(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( 21 input_api.PresubmitLocalPath(), 'devil', *dirs) 23 test_env = dict(input_api.environ) 29 message_type = (output_api.PresubmitError if input_api.is_committing 32 return input_api.RunTests([ 33 input_api.Command( [all …]
|
/external/libmojo/third_party/catapult/devil/ |
D | PRESUBMIT.py | 12 def _RunPylint(input_api, output_api): argument 13 return input_api.RunTests(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( 21 input_api.PresubmitLocalPath(), 'devil', *dirs) 23 test_env = dict(input_api.environ) 29 return input_api.canned_checks.RunUnitTests( 30 input_api, 46 def _EnsureNoPylibUse(input_api, output_api): 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/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/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/v8/tools/mb/ |
D | PRESUBMIT.py | 7 def _CommonChecks(input_api, output_api): argument 11 pylint_checks = input_api.canned_checks.GetPylint(input_api, output_api) 12 results.extend(input_api.RunTests(pylint_checks)) 15 results.extend(input_api.canned_checks.RunUnitTestsInDirectory( 16 input_api, output_api, '.', [ r'^.+_unittest\.py$'])) 19 cmd = [input_api.python_executable, 'mb.py', 'validate'] 20 kwargs = {'cwd': input_api.PresubmitLocalPath()} 21 results.extend(input_api.RunTests([ 22 input_api.Command(name='mb_validate', 27 input_api.canned_checks.CheckLongLines( [all …]
|
/external/pdfium/ |
D | PRESUBMIT.py | 37 def _CheckUnwantedDependencies(input_api, output_api): argument 48 sys.path = sys.path + [input_api.os_path.join( 49 input_api.PresubmitLocalPath(), 'buildtools', 'checkdeps')] 61 for f in input_api.AffectedFiles(): 68 deps_checker = checkdeps.DepsChecker(input_api.PresubmitLocalPath()) 94 def _CheckIncludeOrderForScope(scope, input_api, file_path, changed_linenums): argument 102 c_system_include_pattern = input_api.re.compile(r'\s*#include <.*\.h>') 103 cpp_system_include_pattern = input_api.re.compile(r'\s*#include <.*>') 104 custom_include_pattern = input_api.re.compile(r'\s*#include ".*') 148 def _CheckIncludeOrderInFile(input_api, f, changed_linenums): argument [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/skia/ |
D | PRESUBMIT.py | 59 def _CheckChangeHasEol(input_api, output_api, source_file_filter=None): argument 62 for f in input_api.AffectedSourceFiles(source_file_filter): 63 contents = input_api.ReadFile(f, 'rb') 75 def _PythonChecks(input_api, output_api): argument 91 for affected_file in input_api.AffectedSourceFiles(None): 95 return input_api.canned_checks.RunPylint( 96 input_api, output_api, 101 def _IfDefChecks(input_api, output_api): argument 118 for affected_file in input_api.AffectedSourceFiles(None): 142 def _CopyrightChecks(input_api, output_api, source_file_filter=None): argument [all …]
|
/external/v8/infra/mb/ |
D | PRESUBMIT.py | 11 def _CommonChecks(input_api, output_api): argument 15 mb_script = input_api.os_path.join(input_api.PresubmitLocalPath(), '..', 17 mb_config_path = input_api.os_path.join(input_api.PresubmitLocalPath(), 19 cmd = [input_api.python_executable, mb_script, 'validate', '--config-file', 21 kwargs = {'cwd': input_api.PresubmitLocalPath()} 22 results.extend(input_api.RunTests([ 23 input_api.Command(name='mb_validate', 30 def CheckChangeOnUpload(input_api, output_api): argument 31 return _CommonChecks(input_api, output_api) 34 def CheckChangeOnCommit(input_api, output_api): argument [all …]
|
/external/v8/src/inspector/ |
D | PRESUBMIT.py | 16 def _CompileScripts(input_api, output_api): argument 17 local_paths = [f.LocalPath() for f in input_api.AffectedFiles()] 31 script_path = input_api.os_path.join(input_api.PresubmitLocalPath(), 33 proc = input_api.subprocess.Popen( 34 [input_api.python_executable, script_path], 35 stdout=input_api.subprocess.PIPE, 36 stderr=input_api.subprocess.STDOUT) 46 def CheckChangeOnUpload(input_api, output_api): argument 48 results.extend(_CompileScripts(input_api, output_api)) 52 def CheckChangeOnCommit(input_api, output_api): argument [all …]
|
/external/libchrome/base/ |
D | PRESUBMIT.py | 11 def _CheckNoInterfacesInBase(input_api, output_api): argument 13 pattern = input_api.re.compile(r'^\s*@interface', input_api.re.MULTILINE) 15 for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile): 21 contents = input_api.ReadFile(f) 34 def _CommonChecks(input_api, output_api): argument 37 results.extend(_CheckNoInterfacesInBase(input_api, output_api)) 40 def CheckChangeOnUpload(input_api, output_api): argument 42 results.extend(_CommonChecks(input_api, output_api)) 46 def CheckChangeOnCommit(input_api, output_api): argument 48 results.extend(_CommonChecks(input_api, output_api))
|
/external/webrtc/webrtc/ |
D | PRESUBMIT.py | 9 def _LicenseHeader(input_api): argument 12 current_year = int(input_api.time.strftime('%Y')) 30 def _CommonChecks(input_api, output_api): argument 33 results.extend(input_api.canned_checks.CheckLicense( 34 input_api, output_api, _LicenseHeader(input_api))) 37 def CheckChangeOnUpload(input_api, output_api): argument 39 results.extend(_CommonChecks(input_api, output_api)) 42 def CheckChangeOnCommit(input_api, output_api): argument 44 results.extend(_CommonChecks(input_api, output_api))
|
/external/webrtc/tools/ |
D | PRESUBMIT.py | 9 def _LicenseHeader(input_api): argument 12 current_year = int(input_api.time.strftime('%Y')) 30 def _CommonChecks(input_api, output_api): argument 33 results.extend(input_api.canned_checks.CheckLicense( 34 input_api, output_api, _LicenseHeader(input_api))) 37 def CheckChangeOnUpload(input_api, output_api): argument 39 results.extend(_CommonChecks(input_api, output_api)) 42 def CheckChangeOnCommit(input_api, output_api): argument 44 results.extend(_CommonChecks(input_api, output_api))
|
/external/webrtc/talk/ |
D | PRESUBMIT.py | 26 def _LicenseHeader(input_api): argument 29 current_year = int(input_api.time.strftime('%Y')) 79 def _CommonChecks(input_api, output_api): argument 82 results.extend(input_api.canned_checks.CheckLicense( 83 input_api, output_api, _LicenseHeader(input_api))) 86 def CheckChangeOnUpload(input_api, output_api): argument 88 results.extend(_CommonChecks(input_api, output_api)) 91 def CheckChangeOnCommit(input_api, output_api): argument 93 results.extend(_CommonChecks(input_api, output_api))
|
/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/ |
D | PRESUBMIT.py | 11 def _CommonChecks(input_api, output_api): argument 14 results.extend(input_api.canned_checks.RunPylint( 15 input_api, output_api, black_list=[], pylintrc='pylintrc')) 19 def CheckChangeOnUpload(input_api, output_api): argument 21 report.extend(_CommonChecks(input_api, output_api)) 25 def CheckChangeOnCommit(input_api, output_api): argument 27 report.extend(_CommonChecks(input_api, output_api))
|
/external/webrtc/tools/valgrind-webrtc/drmemory/ |
D | PRESUBMIT.py | 20 def CheckChange(input_api, output_api): argument 24 tools_vg_path = os.path.join(input_api.PresubmitLocalPath(), '..', '..', 31 return suppressions.PresubmitCheck(input_api, output_api) 36 def CheckChangeOnUpload(input_api, output_api): argument 37 return CheckChange(input_api, output_api) 40 def CheckChangeOnCommit(input_api, output_api): argument 41 return CheckChange(input_api, output_api)
|
/external/libmojo/mojo/ |
D | PRESUBMIT.py | 13 def CheckChangeOnUpload(input_api, output_api): argument 18 input_api.PresubmitLocalPath(), "..", "third_party") 21 input_api.PresubmitLocalPath(), "public", "tools", "bindings", "pylib") 24 input_api.PresubmitLocalPath(), "public", "python") 27 temporary_black_list = input_api.DEFAULT_BLACK_LIST + \ 41 results += input_api.canned_checks.RunPylint( 42 input_api, output_api, extra_paths_list=pylint_extra_paths,
|
/external/webrtc/tools/valgrind-webrtc/memcheck/ |
D | PRESUBMIT.py | 21 def CheckChange(input_api, output_api): argument 25 tools_vg_path = os.path.join(input_api.PresubmitLocalPath(), '..', '..', 40 input_api.AffectedFiles()): 91 def CheckChangeOnUpload(input_api, output_api): argument 92 return CheckChange(input_api, output_api) 95 def CheckChangeOnCommit(input_api, output_api): argument 96 return CheckChange(input_api, output_api)
|
/external/libyuv/files/tools_libyuv/valgrind/memcheck/ |
D | PRESUBMIT.py | 21 def CheckChange(input_api, output_api): argument 25 tools_vg_path = os.path.join(input_api.PresubmitLocalPath(), '..', '..', '..', 40 input_api.AffectedFiles()): 90 def CheckChangeOnUpload(input_api, output_api): argument 91 return CheckChange(input_api, output_api) 93 def CheckChangeOnCommit(input_api, output_api): argument 94 return CheckChange(input_api, output_api)
|
/external/v8/tools/ |
D | presubmit.py | 453 def CheckAuthorizedAuthor(input_api, output_api): argument 460 author = input_api.change.author_email 462 input_api.logging.info('No author, skipping AUTHOR check') 464 authors_path = input_api.os_path.join( 465 input_api.PresubmitLocalPath(), 'AUTHORS') 467 input_api.re.match(r'[^#]+\s+\<(.+?)\>\s*$', line) 471 input_api.logging.info('Valid authors are %s', ', '.join(valid_authors))
|