/external/chromium_org/chrome/app/ |
PRESUBMIT.py | 13 def _CheckNoProductNameInGeneratedResources(input_api, output_api): 24 for f, line_num, line in input_api.RightHandSideLines(filename_filter): 37 def _CommonChecks(input_api, output_api): 40 results.extend(_CheckNoProductNameInGeneratedResources(input_api, output_api)) 43 def CheckChangeOnUpload(input_api, output_api): 44 return _CommonChecks(input_api, output_api) 46 def CheckChangeOnCommit(input_api, output_api): 47 return _CommonChecks(input_api, output_api)
|
/external/chromium_org/net/websockets/ |
PRESUBMIT.py | 14 def _CheckReadMeComplete(input_api, output_api): 22 input_api: The InputApi object provided by the presubmit framework. 31 added_source_filenames = set(input_api.basename(af.LocalPath()) 32 for af in input_api.AffectedSourceFiles(None) 36 readme = input_api.AffectedSourceFiles( 52 def CheckChangeOnUpload(input_api, output_api): 53 return _CheckReadMeComplete(input_api, output_api) 56 def CheckChangeOnCommit(input_api, output_api): 57 return _CheckReadMeComplete(input_api, output_api)
|
/external/chromium_org/base/ |
PRESUBMIT.py | 11 def _CheckNoInterfacesInBase(input_api, output_api): 13 pattern = input_api.re.compile(r'^\s*@interface', input_api.re.MULTILINE) 15 for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile): 20 contents = input_api.ReadFile(f) 33 def _CommonChecks(input_api, output_api): 36 results.extend(_CheckNoInterfacesInBase(input_api, output_api)) 39 def CheckChangeOnUpload(input_api, output_api): 41 results.extend(_CommonChecks(input_api, output_api) [all...] |
/external/chromium-trace/trace-viewer/ |
PRESUBMIT.py | 19 def _CommonChecks(input_api, output_api): 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/tools/gyp/ |
PRESUBMIT.py | 66 def CheckChangeOnUpload(input_api, output_api): 68 report.extend(input_api.canned_checks.PanProjectChecks( 69 input_api, output_api)) 73 def CheckChangeOnCommit(input_api, output_api): 77 current_year = int(input_api.time.strftime('%Y')) 91 report.extend(input_api.canned_checks.PanProjectChecks( 92 input_api, output_api, license_header=license)) 93 report.extend(input_api.canned_checks.CheckTreeIsOpen( 94 input_api, output_api, 107 report.extend(input_api.canned_checks.RunPylint [all...] |
/external/chromium_org/tools/perf/ |
PRESUBMIT.py | 22 def _CommonChecks(input_api, output_api): 29 results.extend(input_api.canned_checks.RunPylint( 30 input_api, output_api, 33 results.extend(_CheckJson(input_api, output_api)) 39 def _CheckJson(input_api, output_api): 41 for affected_file in input_api.AffectedFiles(include_deletes=False): 46 input_api.json.load(open(filename)) 52 def CheckChangeOnUpload(input_api, output_api): 54 report.extend(_CommonChecks(input_api, output_api)) 58 def CheckChangeOnCommit(input_api, output_api) [all...] |
/external/chromium_org/v8/ |
PRESUBMIT.py | 63 def _V8PresubmitChecks(input_api, output_api): 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): 94 # We need to wait until we have an input_api object and use this 99 sys.path = sys.path + [input_api.os_path.join [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/ |
PRESUBMIT.py | 40 def _CompileDevtoolsFrontend(input_api, output_api): 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) [all...] |
/external/chromium_org/chrome/browser/ |
PRESUBMIT.py | 16 def CheckChangeOnUpload(input_api, output_api): 17 return _CommonChecks(input_api, output_api) 20 def CheckChangeOnCommit(input_api, output_api): 21 return _CommonChecks(input_api, output_api) 24 def _CommonChecks(input_api, output_api): 28 path = input_api.os_path 29 cwd = input_api.PresubmitLocalPath() 33 affected_files = (f.AbsoluteLocalPath() for f in input_api.AffectedFiles()) 44 input_api.canned_checks.RunUnitTests(input_api, output_api, tests) [all...] |
/external/chromium_org/mojo/spy/ |
PRESUBMIT.py | 7 def _CommonChecks(input_api, output_api): 12 checker = presubmit_checker.PresubmitChecker(input_api, output_api) 16 def GetPathsToPrepend(input_api): 17 return [input_api.PresubmitLocalPath()] 28 def CheckChangeOnUpload(input_api, output_api): 31 results.extend(_CommonChecks(input_api, output_api)) 33 return RunWithPrependedPath(GetPathsToPrepend(input_api), go) 35 def CheckChangeOnCommit(input_api, output_api): 38 results.extend(_CommonChecks(input_api, output_api)) 40 return RunWithPrependedPath(GetPathsToPrepend(input_api), go [all...] |
/external/chromium_org/third_party/libjingle/source/talk/ |
PRESUBMIT.py | 29 def _LicenseHeader(input_api): 32 current_year = int(input_api.time.strftime('%Y')) 82 def _ProtectedFiles(input_api, output_api): 85 for f in input_api.AffectedFiles(): 96 def _CommonChecks(input_api, output_api): 99 results.extend(input_api.canned_checks.CheckLicense( 100 input_api, output_api, _LicenseHeader(input_api))) 101 results.extend(_ProtectedFiles(input_api, output_api)) 104 def CheckChangeOnUpload(input_api, output_api) [all...] |
/external/chromium_org/components/policy/resources/ |
PRESUBMIT.py | 28 def _CheckPolicyTemplatesSyntax(input_api, output_api): 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): 51 root = input_api.change.RepositoryRoot() 52 policy_test_cases_file = input_api.os_path.join [all...] |
/external/chromium_org/ |
PRESUBMIT.py | 279 def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api): 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): 325 pattern = input_api.re.compile(r'^#include\s*<iostream>', 326 input_api.re.MULTILINE [all...] |
/external/chromium_org/tools/auto_bisect/ |
PRESUBMIT.py | 21 def CheckChangeOnUpload(input_api, output_api): 22 return _CommonChecks(input_api, output_api) 25 def CheckChangeOnCommit(input_api, output_api): 26 return _CommonChecks(input_api, output_api) 29 def _CommonChecks(input_api, output_api): 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): 41 for f in input_api.AffectedFiles() [all...] |
/external/chromium_org/tools/lsan/ |
PRESUBMIT.py | 12 def CheckChange(input_api, output_api): 15 for f in input_api.AffectedFiles(): 29 def CheckChangeOnUpload(input_api, output_api): 30 return CheckChange(input_api, output_api) 32 def CheckChangeOnCommit(input_api, output_api): 33 return CheckChange(input_api, output_api)
|
/external/chromium_org/cc/ |
PRESUBMIT.py | 16 def CheckChangeLintsClean(input_api, output_api): 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): 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/polymer/ |
PRESUBMIT.py | 14 def _CheckBowerDependencies(input_api, output_api): 15 os_path = input_api.os_path 16 cwd = input_api.PresubmitLocalPath() 20 for f in input_api.AffectedFiles(include_dirs=True): 51 def CheckChangeOnUpload(input_api, output_api): 52 return _CheckBowerDependencies(input_api, output_api) 55 def CheckChangeOnCommit(input_api, output_api): 56 return _CheckBowerDependencies(input_api, output_api)
|
/external/chromium_org/content/test/gpu/page_sets/ |
PRESUBMIT.py | 9 def _GetTelemetryPath(input_api): 12 input_api.PresubmitLocalPath())))), 'tools', 'telemetry') 14 def LoadSupport(input_api): 19 telemetry_path = _GetTelemetryPath(input_api) 29 def _GetFilesNotInCloud(input_api): 34 for affected_file in input_api.AffectedFiles(include_deletes=False): 42 cloud_storage = LoadSupport(input_api) 60 def _VerifyFilesInCloud(input_api, output_api): 65 hash_paths = _GetFilesNotInCloud(input_api) 75 _GetTelemetryPath(input_api), 'cloud_storage' [all...] |
/external/chromium_org/media/ |
PRESUBMIT.py | 17 def _CheckForUseOfWrongClock(input_api, output_api): 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): 71 message_loop_proxy_re = input_api.re.compile( 75 for f in input_api.AffectedSourceFiles(_FilterFile): 90 def _CheckForHistogramOffByOne(input_api, output_api): 109 uma_macro_re = input_api.re.compile( 115 uma_max_re = input_api.re.compile(r'.*(?:Max|MAX).* \+ 1' [all...] |
/external/chromium_org/chrome/browser/resources/chromeos/braille_ime/ |
PRESUBMIT.py | 7 def CheckChangeOnUpload(input_api, output_api): 10 if not any((FileFilter(p) for p in input_api.LocalPaths())): 15 sys.path.insert(0, input_api.PresubmitLocalPath())
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/ |
PRESUBMIT.py | 7 def CheckChangeOnUpload(input_api, output_api): 8 paths = input_api.AbsoluteLocalPaths() 32 sys.path.insert(0, input_api.os_path.join( 33 input_api.PresubmitLocalPath(), 'tools'))
|
/external/chromium_org/ui/resources/resource_check/ |
resource_scale_factors.py | 35 def __init__(self, input_api, output_api, paths): 37 self.input_api = input_api 63 repository_path = self.input_api.os_path.relpath( 64 self.input_api.PresubmitLocalPath(), 65 self.input_api.change.RepositoryRoot()) 69 affected_files = self.input_api.AffectedFiles(include_deletes=False) 73 path_root = self.input_api.os_path.join( 78 relative_path = self.input_api.os_path.relpath(f.LocalPath(), 87 base_image = self.input_api.os_path.join(self.paths[0][1], f [all...] |
/external/chromium_org/chrome/common/extensions/ |
PRESUBMIT.py | 88 def _CheckHeadingIDs(input_api): 92 for name in input_api.AbsoluteLocalPaths(): 97 contents = input_api.ReadFile(name) 103 def _CheckLinks(input_api, output_api, results): 104 for affected_file in input_api.AffectedFiles(): 115 if input_api.platform == 'win32': 116 args = [input_api.python_executable] 121 output = input_api.subprocess.check_output( 123 cwd=input_api.PresubmitLocalPath(), 139 def _CheckChange(input_api, output_api) [all...] |
/external/chromium_org/third_party/WebKit/ |
PRESUBMIT.py | 17 def _CheckForVersionControlConflictsInFile(input_api, f): 18 pattern = input_api.re.compile('^(?:<<<<<<<|>>>>>>>) |^=======$') 26 def _CheckForVersionControlConflicts(input_api, output_api): 29 for f in input_api.AffectedFiles(): 30 errors.extend(_CheckForVersionControlConflictsInFile(input_api, f)) 39 def _CheckWatchlist(input_api, output_api): 42 for f in input_api.AffectedFiles(): 56 wl = watchlists.Watchlists(input_api.change.RepositoryRoot()) 69 def _CommonChecks(input_api, output_api): 75 results.extend(input_api.canned_checks.PanProjectChecks [all...] |
/external/chromium_org/third_party/skia/ |
PRESUBMIT.py | 36 def _CheckChangeHasEol(input_api, output_api, source_file_filter=None): 39 for f in input_api.AffectedSourceFiles(source_file_filter): 40 contents = input_api.ReadFile(f, 'rb') 52 def _PythonChecks(input_api, output_api): 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): 88 input_api, output_api, source_file_filter=sources)) 89 results.extend(_PythonChecks(input_api, output_api) [all...] |