Home | History | Annotate | Download | only in tests
      1 # Copyright (c) 2014 The Chromium OS 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.
      4 
      5 """This module provides a fake InputDevice for validator unit tests."""
      6 
      7 
      8 class FakeInputDevice(object):
      9     def __init__(self, number_fingers=0, slots={}):
     10         self.number_fingers = number_fingers
     11         self.slots = slots
     12 
     13     def get_num_fingers(self):
     14         return self.number_fingers
     15 
     16     def get_slots(self):
     17         return self.slots
     18