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.
9 def CheckChange(input_api
, output_api
):
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')]))
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
)