| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 import logging | |
| 7 import os | |
| 8 import sys | |
| 9 | |
| 10 | |
| 11 def _SetupPaths(): | |
| 12 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) | |
| 13 sys.path.append('/usr/local') # to import autotest libs | |
| 14 | |
| 15 _SetupPaths() | |
| 16 | |
| 17 from autotest.cros import constants | |
| 18 import pyauto | |
| 19 | |
| 20 | |
| 21 class ChromeosUtils(pyauto.PyUITest): | |
| 22 """Utils for ChromeOS.""" | |
| 23 | |
| 24 def LoginToDefaultAccount(self): | |
| 25 """Login to ChromeOS using default testing account. | |
| 26 | |
| 27 Usage: | |
| 28 python chromeos_utils.py \ | |
| 29 chromeos_utils.ChromeosUtils.LoginToDefaultAccount | |
| 30 """ | |
| 31 # Should auto-login. Nothing to do here. | |
| 32 # TODO(nirnimesh): Remove this when auto-login feature | |
| 33 # reaches chromeos such that this helper is not necessary. | |
| 34 pass | |
| 35 | |
| 36 | |
| 37 if __name__ == '__main__': | |
| 38 pyauto.Main() | |
| OLD | NEW |