Telemetry: More elegant histogram printing.
[chromium-blink-merge.git] / tools / checkdeps / PRESUBMIT.py
blob10ef63212faebd6452d08353a202509b252fc908
1 # Copyright (c) 2012 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 """Presubmit script for checkdeps tool.
6 """
9 def CheckChange(input_api, output_api):
10 results = []
11 results.extend(input_api.canned_checks.RunUnitTests(
12 input_api, output_api,
13 [input_api.os_path.join(input_api.PresubmitLocalPath(),
14 'checkdeps_test.py')]))
15 return results
18 # Mandatory entrypoint.
19 def CheckChangeOnUpload(input_api, output_api):
20 return CheckChange(input_api, output_api)
23 # Mandatory entrypoint.
24 def CheckChangeOnCommit(input_api, output_api):
25 return CheckChange(input_api, output_api)