Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: client/site_tests/login_DBusCalls/login_DBusCalls.py

Issue 5519008: Create a cros directory under client, and start moving things into it. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 logging, os 5 import logging, os
6 from autotest_lib.client.bin import chromeos_constants, site_log_reader 6 from autotest_lib.client.bin import site_log_reader
7 from autotest_lib.client.bin import site_ui_test, site_utils 7 from autotest_lib.client.bin import site_ui_test, site_utils
8 from autotest_lib.client.common_lib import error, utils 8 from autotest_lib.client.common_lib import error, utils
9 from autotest_lib.client.cros import constants as chromeos_constants
9 10
10 _SESSION_MANAGER_DEST='org.chromium.SessionManager' 11 _SESSION_MANAGER_DEST='org.chromium.SessionManager'
11 _SESSION_MANAGER_OBJECT='org.chromium.SessionManagerInterface' 12 _SESSION_MANAGER_OBJECT='org.chromium.SessionManagerInterface'
12 _SESSION_MANAGER_PATH='/org/chromium/SessionManager' 13 _SESSION_MANAGER_PATH='/org/chromium/SessionManager'
13 14
14 class login_DBusCalls(site_ui_test.UITest): 15 class login_DBusCalls(site_ui_test.UITest):
15 version = 1 16 version = 1
16 17
17 def _call_session_manager_method(self, method, user='chronos'): 18 def _call_session_manager_method(self, method, user='chronos'):
18 """Call session manager dbus method as given user. 19 """Call session manager dbus method as given user.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 exception=error.TestFail('Did not find %s in message log' % 58 exception=error.TestFail('Did not find %s in message log' %
58 grep_bait)) 59 grep_bait))
59 finally: 60 finally:
60 logging.debug('Message log from RestartEntd: ' + 61 logging.debug('Message log from RestartEntd: ' +
61 message_log.get_logs()) 62 message_log.get_logs())
62 63
63 64
64 def run_once(self): 65 def run_once(self):
65 self.login() 66 self.login()
66 self._test_restart_entd() 67 self._test_restart_entd()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698