1 #!/usr/bin/env python 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 6 UNIT_TESTS = [ 7 'policy_template_generator_unittest', 8 'writers.adm_writer_unittest', 9 'writers.adml_writer_unittest', 10 'writers.admx_writer_unittest', 11 'writers.doc_writer_unittest', 12 'writers.json_writer_unittest', 13 'writers.plist_strings_writer_unittest', 14 'writers.plist_writer_unittest', 15 'writers.reg_writer_unittest', 16 'writers.template_writer_unittest' 17 ] 18 19 def CheckChangeOnUpload(input_api, output_api): 20 return input_api.canned_checks.RunPythonUnitTests(input_api, 21 output_api, 22 UNIT_TESTS) 23 24 25 def CheckChangeOnCommit(input_api, output_api): 26 return input_api.canned_checks.RunPythonUnitTests(input_api, 27 output_api, 28 UNIT_TESTS) 29