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 5from autotest_lib.client.cros.chameleon import chameleon_measurer_base 6from autotest_lib.server.cros.multimedia import remote_facade_factory 7 8 9class RemoteChameleonMeasurer(chameleon_measurer_base._BaseChameleonMeasurer): 10 """A simple tool to measure using Chameleon for a server test. 11 12 This class can only be used in a server test. For a client test, use the 13 LocalChameleonMeasurer in client/cros/chameleon/chameleon_measurer.py. 14 15 """ 16 17 def __init__(self, cros_host, outputdir=None, no_chrome=False): 18 """Initializes the object.""" 19 self.host = cros_host 20 factory = remote_facade_factory.RemoteFacadeFactory( 21 cros_host, no_chrome) 22 self.display_facade = factory.create_display_facade() 23 24 self.chameleon = cros_host.chameleon 25 self.chameleon.setup_and_reset(outputdir) 26