1# Copyright 2016 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"""An adapter to remotely access the bluetooth facade on DUT.""" 5 6from autotest_lib.server.cros.bluetooth.bluetooth_device import BluetoothDevice 7 8 9class BluetoothFacadeRemoteAdapter(BluetoothDevice): 10 """This is an adapter to remotely control DUT bluetooth. 11 12 The Autotest host object representing the remote DUT, passed to this 13 class on initialization, can be accessed from its _client property. 14 15 """ 16 17 def __init__(self, host, remote_facade_proxy): 18 """Construct an BluetoothFacadeRemoteAdapter. 19 20 @param host: Host object representing a remote host. 21 @param remote_facade_proxy: RemoteFacadeProxy object. 22 23 """ 24 self._client = host 25 super(BluetoothFacadeRemoteAdapter, 26 self).__init__(host, remote_facade_proxy) 27