1# Copyright 2014 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 5import logging, os 6 7from autotest_lib.client.bin import test, utils 8from autotest_lib.client.common_lib.cros import chrome, enrollment 9from autotest_lib.client.cros.multimedia import cfm_facade_native 10 11 12class enterprise_RemoraRequisition(test.test): 13 """Enroll as a Remora device.""" 14 version = 1 15 16 17 def run_once(self): 18 """ 19 Runs the test. 20 """ 21 user_id, password = utils.get_signin_credentials(os.path.join( 22 os.path.dirname(os.path.realpath(__file__)), 'credentials.txt')) 23 if not (user_id and password): 24 logging.warn('No credentials found - exiting test.') 25 return 26 27 with chrome.Chrome( 28 auto_login=False, 29 disable_gaia_services=False, 30 extra_browser_args="--force-devtools-available") as cr: 31 enrollment.RemoraEnrollment(cr.browser, user_id, password) 32 self.cfm_facade = cfm_facade_native.CFMFacadeNative(cr, 'hotrod') 33 self.cfm_facade.check_hangout_extension_context() 34