Android Chromoting: Support landscape rotation for Cardboard Chromoting
[chromium-blink-merge.git] / blimp / PRESUBMIT.py
blobae90d459bc91a181eb154ae1f6652b91c5eb80a5
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 """Top-level presubmit script for blimp.
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
8 for more details about the presubmit API built into depot_tools.
9 """
11 import re
13 BLIMP_SOURCE_FILES=(r'^blimp[\\/].*\.(cc|h)$',)
15 def CheckChangeLintsClean(input_api, output_api):
16 source_filter = lambda x: input_api.FilterSourceFile(
17 x, white_list=BLIMP_SOURCE_FILES, black_list=None)
19 return input_api.canned_checks.CheckChangeLintsClean(
20 input_api, output_api, source_filter, lint_filters=[], verbose_level=1)
22 def CheckChangeOnUpload(input_api, output_api):
23 results = []
24 results += CheckChangeLintsClean(input_api, output_api)
25 return results