1*8975f5c5SAndroid Build Coastguard Worker# Copyright 2023 The Chromium Authors 2*8975f5c5SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be 3*8975f5c5SAndroid Build Coastguard Worker# found in the LICENSE file. 4*8975f5c5SAndroid Build Coastguard Worker 5*8975f5c5SAndroid Build Coastguard WorkerPRESUBMIT_VERSION = '2.0.0' 6*8975f5c5SAndroid Build Coastguard Worker 7*8975f5c5SAndroid Build Coastguard Worker 8*8975f5c5SAndroid Build Coastguard WorkerTEST_PATTERNS = [r'.+_test.py$'] 9*8975f5c5SAndroid Build Coastguard Worker 10*8975f5c5SAndroid Build Coastguard Worker 11*8975f5c5SAndroid Build Coastguard Workerdef CheckUnitTests(input_api, output_api): 12*8975f5c5SAndroid Build Coastguard Worker # Runs all unit tests under the build/ios folder. 13*8975f5c5SAndroid Build Coastguard Worker return input_api.canned_checks.RunUnitTestsInDirectory( 14*8975f5c5SAndroid Build Coastguard Worker input_api, output_api, '.', files_to_check=TEST_PATTERNS) 15