summaryrefslogtreecommitdiff
path: root/chromium/services/viz/PRESUBMIT.py
blob: babbf3fe2a0f4030bd9907edc20c9d590be2167c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Top-level presubmit script for services/viz."""

def CheckChangeOnUpload(input_api, output_api):
  import sys
  original_sys_path = sys.path
  sys.path = sys.path + [input_api.os_path.join(
      input_api.change.RepositoryRoot(),
      'components', 'viz')]

  import presubmit_checks as ps
  white_list=(r'^services[\\/]viz[\\/].*\.(cc|h)$',)
  return ps.RunAllChecks(input_api, output_api, white_list)