blob: bebffdddf4f2b2c20138afdd7332b3bfd0471163 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class FAFTClientAttribute(object):
"""Class that tests platform name and gives client machine attributes."""
version = 1
DEFAULT_SETTING = {'keyboard_dev': True}
def __init__(self, platform):
"""Initialized.
Args:
platform: Platform name returned by FAFT client.
"""
self.__dict__.update(self.DEFAULT_SETTING)
self.__dict__.update(self._get_platform_setting(platform))
def _get_platform_setting(self, platform):
"""Return platform-specific settings."""
setting = dict()
if platform in ['Aebl', 'Alex', 'Kaen', 'Lumpy', 'Mario', 'Seaboard',
'Stumpy', 'ZGB']:
setting['keyboard_dev'] = False
return setting