Home
last modified time | relevance | path

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

1234

/external/chromium_org/third_party/WebKit/
DPRESUBMIT.py17 def _CheckForVersionControlConflictsInFile(input_api, f): argument
18 pattern = input_api.re.compile('^(?:<<<<<<<|>>>>>>>) |^=======$')
26 def _CheckForVersionControlConflicts(input_api, output_api): argument
29 for f in input_api.AffectedFiles():
30 errors.extend(_CheckForVersionControlConflictsInFile(input_api, f))
39 def _CheckWatchlist(input_api, output_api): argument
42 for f in input_api.AffectedFiles():
56 wl = watchlists.Watchlists(input_api.change.RepositoryRoot())
69 def _CommonChecks(input_api, output_api): argument
75 results.extend(input_api.canned_checks.PanProjectChecks(
[all …]
/external/chromium_org/
DPRESUBMIT.py279 def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api): argument
291 inclusion_pattern = input_api.re.compile(r'(%s)\s*\(' % base_function_pattern)
292 comment_pattern = input_api.re.compile(r'//.*(%s)' % base_function_pattern)
293 exclusion_pattern = input_api.re.compile(
300 input_api.DEFAULT_BLACK_LIST)
301 return input_api.FilterSourceFile(
307 for f in input_api.AffectedSourceFiles(FilterFile):
322 def _CheckNoIOStreamInHeaders(input_api, output_api): argument
325 pattern = input_api.re.compile(r'^#include\s*<iostream>',
326 input_api.re.MULTILINE)
[all …]
/external/chromium_org/v8/
DPRESUBMIT.py63 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 CheckRuntimeVsNativesNameClashes(input_api.PresubmitLocalPath()):
83 if not CheckExternalReferenceRegistration(input_api.PresubmitLocalPath()):
89 def _CheckUnwantedDependencies(input_api, output_api): argument
99 sys.path = sys.path + [input_api.os_path.join(
100 input_api.PresubmitLocalPath(), 'buildtools', 'checkdeps')]
[all …]
/external/chromium_org/third_party/
DPRESUBMIT.py22 def LicenseIsCompatibleWithAndroid(input_api, license): argument
25 [x.strip() for x in input_api.re.split(' and |,', license) if len(x) > 0]
28 if input_api.re.match(regex, token, input_api.re.IGNORECASE):
33 def _CheckThirdPartyReadmesUpdated(input_api, output_api): argument
41 for f in input_api.AffectedFiles():
43 if input_api.os_path.dirname(local_path) == 'third_party':
45 if local_path.startswith('third_party' + input_api.os_path.sep):
57 name_pattern = input_api.re.compile(
59 input_api.re.IGNORECASE | input_api.re.MULTILINE)
60 shortname_pattern = input_api.re.compile(
[all …]
/external/chromium_org/chrome/common/extensions/docs/server2/
DPRESUBMIT.py21 def _BuildServer(input_api): argument
23 sys.path.insert(0, input_api.PresubmitLocalPath())
29 def _ImportAppYamlHelper(input_api): argument
31 sys.path.insert(0, input_api.PresubmitLocalPath())
37 def _WarnIfAppYamlHasntChanged(input_api, output_api): argument
38 app_yaml_path = os.path.join(input_api.PresubmitLocalPath(), 'app.yaml')
39 if app_yaml_path in input_api.AbsoluteLocalPaths():
67 def _CheckYamlConsistency(input_api, output_api): argument
68 app_yaml_path = os.path.join(input_api.PresubmitLocalPath(), 'app.yaml')
69 cron_yaml_path = os.path.join(input_api.PresubmitLocalPath(), 'cron.yaml')
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/
DPRESUBMIT.py40 def _CompileDevtoolsFrontend(input_api, output_api): argument
42 if not input_api.platform.startswith('linux'):
44 local_paths = [f.LocalPath() for f in input_api.AffectedFiles()]
55 lint_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
57 out, _ = input_api.subprocess.Popen(
58 [input_api.python_executable, lint_path],
59 stdout=input_api.subprocess.PIPE,
60 stderr=input_api.subprocess.STDOUT).communicate()
66 def _CheckConvertSVGToPNGHashes(input_api, output_api): argument
67 if not input_api.platform.startswith('linux'):
[all …]
/external/chromium_org/cc/
DPRESUBMIT.py16 def CheckChangeLintsClean(input_api, output_api): argument
17 input_api.cpplint._cpplint_state.ResetErrorCounts() # reset global state
18 source_filter = lambda x: input_api.FilterSourceFile(
21 input_api.AffectedSourceFiles(source_filter)]
25 input_api.cpplint.ProcessFile(file_name, level)
27 if not input_api.cpplint._cpplint_state.error_count:
33 def CheckAsserts(input_api, output_api, white_list=CC_SOURCE_FILES, black_list=None): argument
34 black_list = tuple(black_list or input_api.DEFAULT_BLACK_LIST)
35 source_file_filter = lambda x: input_api.FilterSourceFile(x, white_list, black_list)
40 for f in input_api.AffectedSourceFiles(source_file_filter):
[all …]
/external/chromium_org/third_party/skia/
DPRESUBMIT.py36 def _CheckChangeHasEol(input_api, output_api, source_file_filter=None): argument
39 for f in input_api.AffectedSourceFiles(source_file_filter):
40 contents = input_api.ReadFile(f, 'rb')
52 def _PythonChecks(input_api, output_api): argument
67 for affected_file in input_api.AffectedSourceFiles(None):
71 return input_api.canned_checks.RunPylint(
72 input_api, output_api,
77 def _CommonChecks(input_api, output_api): argument
88 input_api, output_api, source_file_filter=sources))
89 results.extend(_PythonChecks(input_api, output_api))
[all …]
/external/chromium_org/tools/memory_inspector/
DPRESUBMIT.py12 def _CommonChecks(input_api, output_api): argument
15 output.extend(input_api.canned_checks.RunPylint(
16 input_api, output_api, black_list=blacklist,
18 input_api.os_path.join(input_api.PresubmitLocalPath(), '..', '..',
21 output.extend(input_api.canned_checks.RunUnitTests(
22 input_api,
24 [input_api.os_path.join(input_api.PresubmitLocalPath(), 'run_tests')]))
26 if input_api.is_committing:
27 output.extend(input_api.canned_checks.PanProjectChecks(input_api,
33 def _CheckPrebuiltsAreUploaded(input_api, output_api): argument
[all …]
/external/chromium_org/third_party/WebKit/Source/bindings/
DPRESUBMIT.py39 def _RunBindingsTests(input_api, output_api): argument
41 source_filter = lambda x: input_api.FilterSourceFile(
42 x, black_list=input_api.DEFAULT_BLACK_LIST + BLACK_LIST)
43 if not input_api.AffectedFiles(file_filter=source_filter):
46 if input_api.is_committing:
51 pardir = input_api.os_path.pardir
52 …run_bindings_tests_path = input_api.os_path.join(input_api.PresubmitLocalPath(), pardir, pardir, '…
54 if input_api.platform == 'win32':
56 cmd = [input_api.python_executable, run_bindings_tests_path]
59 test_cmd = input_api.Command(
[all …]
/external/chromium_org/content/test/
DPRESUBMIT.py16 def LintTestFiles(input_api, output_api): argument
17 current_dir = str(input_api.PresubmitLocalPath())
21 subproc = input_api.subprocess.Popen(
22 [input_api.python_executable,
23 input_api.os.path.join(src_dir, 'third_party', 'WebKit', 'Tools',
25 stdin=input_api.subprocess.PIPE,
26 stdout=input_api.subprocess.PIPE,
27 stderr=input_api.subprocess.STDOUT)
29 is_error = lambda line: (input_api.re.match('^Line:', line) or
30 input_api.re.search('ERROR Line:', line))
[all …]
/external/chromium_org/tools/find_runtime_symbols/
DPRESUBMIT.py12 def CommonChecks(input_api, output_api): argument
15 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args)
23 output.extend(input_api.canned_checks.RunPylint(input_api, output_api))
28 input_api.canned_checks.RunUnitTestsInDirectory(
29 input_api, output_api,
30 input_api.os_path.join(input_api.PresubmitLocalPath(), 'tests'),
33 if input_api.is_committing:
34 output.extend(input_api.canned_checks.PanProjectChecks(input_api,
40 def CheckChangeOnUpload(input_api, output_api): argument
41 return CommonChecks(input_api, output_api)
[all …]
/external/chromium_org/tools/linux/
DPRESUBMIT.py12 def CommonChecks(input_api, output_api): argument
15 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args)
23 output.extend(input_api.canned_checks.RunPylint(input_api, output_api))
28 input_api.canned_checks.RunUnitTestsInDirectory(
29 input_api, output_api,
30 input_api.os_path.join(input_api.PresubmitLocalPath(), 'tests'),
33 if input_api.is_committing:
34 output.extend(input_api.canned_checks.PanProjectChecks(input_api,
40 def CheckChangeOnUpload(input_api, output_api): argument
41 return CommonChecks(input_api, output_api)
[all …]
/external/chromium_org/tools/deep_memory_profiler/
DPRESUBMIT.py12 def CommonChecks(input_api, output_api): argument
15 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args)
23 output.extend(input_api.canned_checks.RunPylint(input_api, output_api))
28 input_api.canned_checks.RunUnitTestsInDirectory(
29 input_api, output_api,
30 input_api.os_path.join(input_api.PresubmitLocalPath(), 'tests'),
33 if input_api.is_committing:
34 output.extend(input_api.canned_checks.PanProjectChecks(input_api,
40 def CheckChangeOnUpload(input_api, output_api): argument
41 return CommonChecks(input_api, output_api)
[all …]
/external/chromium_org/build/android/
DPRESUBMIT.py16 def _CheckDeletionsOnlyFiles(input_api, output_api): argument
20 for f in input_api.AffectedFiles():
31 def CommonChecks(input_api, output_api): argument
36 return input_api.os_path.join(input_api.PresubmitLocalPath(), *dirs)
38 output.extend(input_api.canned_checks.RunPylint(
39 input_api,
45 output.extend(input_api.canned_checks.RunPylint(
46 input_api,
55 pylib_test_env = dict(input_api.environ)
57 'PYTHONPATH': input_api.PresubmitLocalPath(),
[all …]
/external/chromium-trace/trace-viewer/
DPRESUBMIT.py19 def _CommonChecks(input_api, output_api): argument
21 results.extend(input_api.canned_checks.PanProjectChecks(
22 input_api, output_api, excluded_paths=_EXCLUDED_PATHS))
24 src_dir = os.path.join(input_api.change.RepositoryRoot(), "src")
33 results.extend(css_checker.CSSChecker(input_api, output_api,
35 results.extend(js_checker.JSChecker(input_api, output_api,
48 black_list = input_api.DEFAULT_BLACK_LIST
49 sources = lambda x: input_api.FilterSourceFile(x, black_list=black_list)
50 results.extend(input_api.canned_checks.CheckLicense(
51 input_api, output_api, _LICENSE_HEADER,
[all …]
/external/chromium_org/components/policy/resources/
DPRESUBMIT.py28 def _CheckPolicyTemplatesSyntax(input_api, output_api): argument
29 local_path = input_api.PresubmitLocalPath()
30 filepath = input_api.os_path.join(local_path, 'policy_templates.json')
32 for f in input_api.AffectedFiles()):
35 tools_path = input_api.os_path.normpath(
36 input_api.os_path.join(local_path, input_api.os_path.pardir, 'tools'))
49 def _CheckPolicyTestCases(input_api, output_api, policies): argument
51 root = input_api.change.RepositoryRoot()
52 policy_test_cases_file = input_api.os_path.join(
54 test_names = input_api.json.load(open(policy_test_cases_file)).keys()
[all …]
/external/chromium_org/tools/cygprofile/
DPRESUBMIT.py12 def CommonChecks(input_api, output_api): argument
15 output.extend(input_api.canned_checks.RunPylint(
16 input_api, output_api, black_list=blacklist))
17 output.extend(input_api.canned_checks.RunUnitTests(
18 input_api,
20 [input_api.os_path.join(input_api.PresubmitLocalPath(), 'run_tests')]))
22 if input_api.is_committing:
23 output.extend(input_api.canned_checks.PanProjectChecks(input_api,
29 def CheckChangeOnUpload(input_api, output_api): argument
30 return CommonChecks(input_api, output_api)
[all …]
/external/chromium_org/tools/binary_size/
DPRESUBMIT.py11 def CommonChecks(input_api, output_api): argument
13 output.extend(input_api.canned_checks.RunPylint(input_api, output_api))
15 input_api.canned_checks.RunUnitTestsInDirectory(
16 input_api, output_api,
17 input_api.PresubmitLocalPath(),
20 if input_api.is_committing:
21 output.extend(input_api.canned_checks.PanProjectChecks(input_api,
27 def CheckChangeOnUpload(input_api, output_api): argument
28 return CommonChecks(input_api, output_api)
31 def CheckChangeOnCommit(input_api, output_api): argument
[all …]
/external/chromium_org/tools/auto_bisect/
DPRESUBMIT.py21 def CheckChangeOnUpload(input_api, output_api): argument
22 return _CommonChecks(input_api, output_api)
25 def CheckChangeOnCommit(input_api, output_api): argument
26 return _CommonChecks(input_api, output_api)
29 def _CommonChecks(input_api, output_api): argument
32 results.extend(_CheckAllConfigFiles(input_api, output_api))
33 results.extend(_RunUnitTests(input_api, output_api))
34 results.extend(_RunPyLint(input_api, output_api))
38 def _CheckAllConfigFiles(input_api, output_api): argument
41 for f in input_api.AffectedFiles():
[all …]
/external/chromium_org/media/
DPRESUBMIT.py17 def _CheckForUseOfWrongClock(input_api, output_api): argument
42 problem_re = input_api.re.compile(
44 exception_re = input_api.re.compile(
48 for f in input_api.AffectedSourceFiles(_FilterFile):
67 def _CheckForMessageLoopProxy(input_api, output_api): argument
71 message_loop_proxy_re = input_api.re.compile(
75 for f in input_api.AffectedSourceFiles(_FilterFile):
90 def _CheckForHistogramOffByOne(input_api, output_api): argument
109 uma_macro_re = input_api.re.compile(
115 uma_max_re = input_api.re.compile(r'.*(?:Max|MAX).* \+ 1')
[all …]
/external/chromium_org/tools/metrics/histograms/
DPRESUBMIT.py11 def CheckChange(input_api, output_api): argument
13 for f in input_api.AffectedTextFiles():
15 if (input_api.basename(p) == 'histograms.xml'
16 and input_api.os_path.dirname(p) == input_api.PresubmitLocalPath()):
17 cwd = input_api.os_path.dirname(p)
18 exit_code = input_api.subprocess.call(
25 exit_code = input_api.subprocess.call(
34 def CheckChangeOnUpload(input_api, output_api): argument
35 return CheckChange(input_api, output_api)
38 def CheckChangeOnCommit(input_api, output_api): argument
[all …]
/external/chromium_org/chrome/
DPRESUBMIT.py45 def _CheckChangeLintsClean(input_api, output_api): argument
47 black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE
48 sources = lambda x: input_api.FilterSourceFile(
50 return input_api.canned_checks.CheckChangeLintsClean(
51 input_api, output_api, sources)
53 def _CheckNoContentUnitTestsInChrome(input_api, output_api): argument
56 for f in input_api.AffectedFiles():
72 def _CommonChecks(input_api, output_api): argument
75 results.extend(_CheckNoContentUnitTestsInChrome(input_api, output_api))
78 def CheckChangeOnUpload(input_api, output_api): argument
[all …]
/external/chromium_org/tools/metrics/actions/
DPRESUBMIT.py12 def CheckChange(input_api, output_api): argument
14 for f in input_api.AffectedTextFiles():
16 if (input_api.basename(p) == 'actions.xml'
17 and input_api.os_path.dirname(p) == input_api.PresubmitLocalPath()):
18 cwd = input_api.os_path.dirname(p)
19 exit_code = input_api.subprocess.call(
28 def CheckChangeOnUpload(input_api, output_api): argument
29 return CheckChange(input_api, output_api)
32 def CheckChangeOnCommit(input_api, output_api): argument
33 return CheckChange(input_api, output_api)
/external/chromium_org/net/tools/tld_cleanup/
DPRESUBMIT.py9 def _RunMakeDafsaTests(input_api, output_api): argument
13 if not any(f in input_api.LocalPaths() for f in files):
15 test_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
18 cmd = [input_api.python_executable, test_path]
19 test_cmd = input_api.Command(
24 return input_api.RunTests([test_cmd])
27 def CheckChangeOnUpload(input_api, output_api): argument
28 return _RunMakeDafsaTests(input_api, output_api)
31 def CheckChangeOnCommit(input_api, output_api): argument
32 return _RunMakeDafsaTests(input_api, output_api)

1234