OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import dbus, logging, os, re, shutil, socket, sys, time | 5 import dbus, logging, os, re, shutil, socket, sys, time |
6 from autotest_lib.client.bin import chromeos_constants, site_cryptohome | 6 from autotest_lib.client.bin import site_cryptohome |
7 from autotest_lib.client.bin import site_login, site_utils, test as bin_test | 7 from autotest_lib.client.bin import site_login, site_utils, test as bin_test |
8 from autotest_lib.client.bin import site_log_reader | 8 from autotest_lib.client.bin import site_log_reader |
9 from autotest_lib.client.common_lib import error, site_ui | 9 from autotest_lib.client.common_lib import error, site_ui |
10 from autotest_lib.client.common_lib import site_auth_server, site_dns_server | 10 from autotest_lib.client.common_lib import site_auth_server, site_dns_server |
| 11 from autotest_lib.client.cros import constants as chromeos_constants |
11 from dbus.mainloop.glib import DBusGMainLoop | 12 from dbus.mainloop.glib import DBusGMainLoop |
12 | 13 |
13 sys.path.append(os.environ.get("SYSROOT", "/usr/local") + | 14 sys.path.append(os.environ.get("SYSROOT", "/usr/local") + |
14 "/usr/lib/flimflam/test") | 15 "/usr/lib/flimflam/test") |
15 import flimflam | 16 import flimflam |
16 | 17 |
17 | 18 |
18 class UITest(bin_test.test): | 19 class UITest(bin_test.test): |
19 """Base class for tests that drive some portion of the user interface. | 20 """Base class for tests that drive some portion of the user interface. |
20 | 21 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 | 324 |
324 self.stop_authserver() | 325 self.stop_authserver() |
325 self.__log_crashed_processes(self.crash_blacklist) | 326 self.__log_crashed_processes(self.crash_blacklist) |
326 | 327 |
327 | 328 |
328 def get_auth_endpoint_misses(self): | 329 def get_auth_endpoint_misses(self): |
329 if hasattr(self, '_authServer'): | 330 if hasattr(self, '_authServer'): |
330 return self._authServer.get_endpoint_misses() | 331 return self._authServer.get_endpoint_misses() |
331 else: | 332 else: |
332 return {} | 333 return {} |
OLD | NEW |