Add Apps.AppListSearchQueryLength UMA histogram.
[chromium-blink-merge.git] / build / android / pylib / symbols / PRESUBMIT.py
blobb4d94ae225b02546459fa17c35ddf079f252232b
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 def CommonChecks(input_api, output_api):
6 output = []
7 output.extend(input_api.canned_checks.RunPylint(input_api, output_api))
8 output.extend(input_api.canned_checks.RunUnitTestsInDirectory(
9 input_api,
10 output_api,
11 input_api.PresubmitLocalPath(),
12 whitelist=[r'^.+_unittest\.py$']))
13 return output
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)