Home
last modified time | relevance | path

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

12

/external/webrtc/
DPRESUBMIT.py66 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/
DPRESUBMIT.py71 def _V8PresubmitChecks(input_api, output_api): argument
74 sys.path.append(input_api.os_path.join(
75 input_api.PresubmitLocalPath(), 'tools'))
81 return input_api.FilterSourceFile(
88 input_api.AffectedFiles(file_filter=FilterFile, include_deletes=False)):
91 input_api.AffectedFiles(include_deletes=False)):
96 input_api.AffectedFiles(include_deletes=True)):
98 results.extend(input_api.canned_checks.CheckAuthorizedAuthor(
99 input_api, output_api, bot_whitelist=[
105 def _CheckUnwantedDependencies(input_api, output_api): argument
[all …]
/external/chromium-trace/catapult/devil/
DPRESUBMIT.py12 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/libyuv/files/
DPRESUBMIT.py12 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/skia/
DPRESUBMIT.py49 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/
DPRESUBMIT.py37 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/systrace/
DPRESUBMIT.py6 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/skqp/
DPRESUBMIT.py49 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/chromium-trace/catapult/common/py_utils/
DPRESUBMIT.py6 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/
DPRESUBMIT.py6 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/
DPRESUBMIT.py7 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/perfetto/
DPRESUBMIT.py42 def CheckChangeOnUpload(input_api, output_api): argument
43 return CheckChange(input_api, output_api)
46 def CheckChangeOnCommit(input_api, output_api): argument
47 return CheckChange(input_api, output_api)
50 def CheckBuild(input_api, output_api): argument
52 def build_file_filter(x): return input_api.FilterSourceFile(
55 if not input_api.AffectedSourceFiles(build_file_filter):
79 def CheckAndroidBlueprint(input_api, output_api): argument
81 build_file_filter = lambda x: input_api.FilterSourceFile(
84 if not input_api.AffectedSourceFiles(build_file_filter):
[all …]
/external/v8/infra/mb/
DPRESUBMIT.py11 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/
DPRESUBMIT.py16 def _CompileScripts(input_api, output_api): argument
17 local_paths = [f.LocalPath() for f in input_api.AffectedFiles()]
29 script_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
31 proc = input_api.subprocess.Popen(
32 [input_api.python_executable, script_path],
33 stdout=input_api.subprocess.PIPE,
34 stderr=input_api.subprocess.STDOUT)
44 def CheckChangeOnUpload(input_api, output_api): argument
46 results.extend(_CompileScripts(input_api, output_api))
50 def CheckChangeOnCommit(input_api, output_api): argument
[all …]
/external/libchrome/base/android/jni_generator/
DPRESUBMIT.py12 def CommonChecks(input_api, output_api): argument
13 base_android_jni_generator_dir = input_api.PresubmitLocalPath()
15 env = dict(input_api.environ)
21 return input_api.canned_checks.RunUnitTests(
22 input_api,
25 input_api.os_path.join(
32 def CheckChangeOnUpload(input_api, output_api): argument
33 return CommonChecks(input_api, output_api)
36 def CheckChangeOnCommit(input_api, output_api): argument
37 return CommonChecks(input_api, output_api)
/external/pdfium/public/
DPRESUBMIT.py11 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(
17 input_api.subprocess.check_output(check_script)
19 except input_api.subprocess.CalledProcessError as error:
24 def CheckChangeOnUpload(input_api, output_api): argument
26 results += _CheckPublicHeaders(input_api, output_api)
30 def CheckChangeOnCommit(input_api, output_api): argument
32 results += _CheckPublicHeaders(input_api, output_api)
/external/webrtc/tools/
DPRESUBMIT.py9 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/webrtc/
DPRESUBMIT.py9 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/
DPRESUBMIT.py26 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/perfetto/ui/
DPRESUBMIT.py25 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/v8/infra/config/
DPRESUBMIT.py12 def _CommonChecks(input_api, output_api): argument
16 input_api.canned_checks.CheckChangedLUCIConfigs(input_api, output_api))
20 def CheckChangeOnUpload(input_api, output_api): argument
22 results.extend(_CommonChecks(input_api, output_api))
26 def CheckChangeOnCommit(input_api, output_api): argument
28 results.extend(_CommonChecks(input_api, output_api))
/external/webrtc/tools/valgrind-webrtc/drmemory/
DPRESUBMIT.py20 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/libchrome/mojo/
DPRESUBMIT.py13 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/
DPRESUBMIT.py21 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/
DPRESUBMIT.py21 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)

12