1*9c5db199SXin Li# Copyright 2017 The Chromium OS Authors. All rights reserved. 2*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be 3*9c5db199SXin Li# found in the LICENSE file. 4*9c5db199SXin Li 5*9c5db199SXin Li"""Implements a Cast OS host type.""" 6*9c5db199SXin Li 7*9c5db199SXin Lifrom autotest_lib.server.hosts import ssh_host 8*9c5db199SXin Li 9*9c5db199SXin LiOS_TYPE_CAST_OS = 'cast_os' 10*9c5db199SXin Li 11*9c5db199SXin Li 12*9c5db199SXin Liclass CastOSHost(ssh_host.SSHHost): 13*9c5db199SXin Li """Implements a Cast OS host type.""" 14*9c5db199SXin Li 15*9c5db199SXin Li 16*9c5db199SXin Li def get_os_type(self): 17*9c5db199SXin Li """Returns the host OS descriptor.""" 18*9c5db199SXin Li return OS_TYPE_CAST_OS 19*9c5db199SXin Li 20*9c5db199SXin Li 21*9c5db199SXin Li def get_wifi_interface_name(self): 22*9c5db199SXin Li """Gets the WiFi interface name.""" 23*9c5db199SXin Li return self.run('getprop wifi.interface').stdout.rstrip() 24*9c5db199SXin Li 25*9c5db199SXin Li 26*9c5db199SXin Li @property 27*9c5db199SXin Li def is_client_install_supported(self): 28*9c5db199SXin Li return False 29