1# Copyright 2023 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5"""Top-level presubmit for //net 6 7See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts 8for more details about the presubmit API built into depot_tools. 9""" 10 11PRESUBMIT_VERSION = '2.0.0' 12 13def CheckChange(input_api, output_api): 14 import sys 15 old_sys_path = sys.path[:] 16 results = [] 17 try: 18 sys.path.append(input_api.change.RepositoryRoot()) 19 from build.ios import presubmit_support 20 results += presubmit_support.CheckBundleData( 21 input_api, 22 output_api, 23 'data/test_bundle_data', 24 globroot='.') 25 results += presubmit_support.CheckBundleData( 26 input_api, 27 output_api, 28 'data/test_support_bundle_data', 29 globroot='.') 30 finally: 31 sys.path = old_sys_path 32 return results 33