15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Copyright 2014 The Chromium Authors. All rights reserved.
25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be
35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# found in the LICENSE file.
45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)"""Chromium presubmit script for src/ui/events
65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)for more details on the presubmit API built into gcl.
95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)"""
105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
11a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)def GetPreferredTryMasters(project, change):
125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  tests = set(['ash_unittests',
135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)               'aura_unittests',
145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)               'events_unittests',
155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)               'keyboard_unittests',
165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)               'views_unittests'])
175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
18a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  return {
195f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)    'tryserver.chromium.linux': {
205f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)      'linux_chromium_rel_swarming': tests,
216e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)      'linux_chromium_chromeos_rel_swarming': tests,
22a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)      'linux_chromeos_asan': tests,
235f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)    },
245f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)    'tryserver.chromium.win': {
25cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)      'win_chromium_compile_dbg': tests,
266e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)      'win_chromium_rel_swarming': tests,
27a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)    }
28a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  }
29