Tiago Vignatti | 142491c8 | 2023-02-17 14:29:26 | [diff] [blame] | 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 | |
Ian Vollick | 63109f69 | 2023-03-02 03:24:17 | [diff] [blame] | 5 | """Presubmit checks for ui/gfx |
Tiago Vignatti | 142491c8 | 2023-02-17 14:29:26 | [diff] [blame] | 6 | |
| 7 | See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| 8 | for more details about the presubmit API built into depot_tools. |
| 9 | """ |
| 10 | |
| 11 | PRESUBMIT_VERSION = '2.0.0' |
| 12 | |
Tiago Vignatti | 142491c8 | 2023-02-17 14:29:26 | [diff] [blame] | 13 | def 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( |
Gyuyoung Kim | e2447f8 | 2023-11-01 16:34:27 | [diff] [blame] | 21 | input_api, output_api, 'test/data/codec/unit_tests_bundle_data') |
| 22 | results += presubmit_support.CheckBundleData( |
| 23 | input_api, output_api, |
| 24 | 'test/data/compositor/unit_tests_bundle_data') |
Tiago Vignatti | 142491c8 | 2023-02-17 14:29:26 | [diff] [blame] | 25 | finally: |
| 26 | sys.path = old_sys_path |
| 27 | return results |