• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013 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
5from autotest_lib.client.cros.networking import shill_proxy
6
7
8class WiMaxProxy(shill_proxy.ShillProxy):
9    """Wrapper around shill dbus interface used by WiMAX tests."""
10
11    def set_logging_for_wimax_test(self):
12        """Set the logging in shill for a test of WiMAX technology.
13
14        Set the log level to |ShillProxy.LOG_LEVEL_FOR_TEST| and the log scopes
15        to the ones defined in |ShillProxy.LOG_SCOPES_FOR_TEST| for
16        |ShillProxy.TECHNOLOGY_WIMAX|.
17
18        """
19        self.set_logging_for_test(self.TECHNOLOGY_WIMAX)
20
21
22    def find_wimax_service_object(self):
23        """Returns the first dbus object found that is a WiMAX service.
24
25        @return DBus object for the first WiMAX service found. None if no
26                service found.
27
28        """
29        return self.find_object('Service', {'Type': self.TECHNOLOGY_WIMAX})
30
31
32    def find_wimax_device_object(self):
33        """Returns the first dbus object found that is a WiMAX device.
34
35        @return DBus object for the first WiMAX device found. None if no
36                device found.
37
38        """
39        return self.find_object('Device', {'Type': self.TECHNOLOGY_WIMAX})
40