blob: 379545137a1abd3a4f1ffdbd86cefbcf5ea7b4d7 [file] [log] [blame]
Chris Masone105706e2011-04-29 14:37:11 -07001# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
Chris Masonee7dd0162010-03-23 13:50:58 -07002# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# The names of expected mount-points, devices, magic files, etc on chrome os.
6
Ken Mixter4446e6d2010-11-23 13:29:16 -08007# Constants used by other constants.
Chris Masonee7dd0162010-03-23 13:50:58 -07008USER_DATA_DIR = '/home/chronos'
Ken Mixter4446e6d2010-11-23 13:29:16 -08009WHITELIST_DIR = '/var/lib/whitelist'
Chris Masonee7dd0162010-03-23 13:50:58 -070010
Ken Mixter4446e6d2010-11-23 13:29:16 -080011
12# Rest of constants.
13BROWSER = 'chrome'
Chris Masone93e65d02011-03-10 07:22:21 -080014BROWSER_EXE = '/opt/google/chrome/' + BROWSER
Ken Mixter4446e6d2010-11-23 13:29:16 -080015
Chris Masoneeb32f932011-07-27 16:51:07 -070016CHROME_CORE_MAGIC_FILE = '/mnt/stateful_partition/etc/collect_chrome_crashes'
Ken Mixter4446e6d2010-11-23 13:29:16 -080017CHROME_LOG_DIR = '/var/log/chrome'
18CHROME_WINDOW_MAPPED_MAGIC_FILE = \
19 '/var/run/state/windowmanager/initial-chrome-window-mapped'
Chris Masonee7dd0162010-03-23 13:50:58 -070020
Ken Mixterfa616892010-11-11 11:59:08 -080021CLEANUP_LOGS_PAUSED_FILE = '/var/lib/cleanup_logs_paused'
Ken Mixter4446e6d2010-11-23 13:29:16 -080022
Chris Sosaed8013a2012-01-24 10:35:31 -080023CLIENT_LOGIN_URL = '/accounts/ClientLogin'
Ken Mixter4446e6d2010-11-23 13:29:16 -080024
Chris Masoned931e8c2011-11-09 13:17:16 -080025CRASH_DIR = '/var/spool/crash'
Ben Chan8d929042012-01-04 20:53:48 -080026CRASH_REPORTER_RESIDUE_DIR = '/tmp/crash_reporter'
Chris Masoned931e8c2011-11-09 13:17:16 -080027
Ken Mixter4446e6d2010-11-23 13:29:16 -080028CREDENTIALS = {
Gaurav Shah52e10402011-04-04 15:42:58 -070029 '$mockowner': ['mockowner.test.account@gmail.com', 'perfsmurf'],
Ken Mixter4446e6d2010-11-23 13:29:16 -080030 '$default': ['performance.test.account@gmail.com', 'perfsmurf'],
Chris Masone75850362011-01-04 11:37:22 -080031 '$apps': ['performance.test.account@googleapps.com', 'perfsmurf'],
Ken Mixter4446e6d2010-11-23 13:29:16 -080032 '$backdoor': ['chronos@gmail.com', 'chronos'],
33}
34
Frank Swiderski52653c32010-05-26 17:40:47 -070035# TODO(fes): With the switch to ecryptfs, the cryptohome device is no longer
36# static--it includes a system-specific hash of the username whose vault is
37# mounted. seano points out that this is no longer a constant, and we may want
38# to change the way tests dependent on this value work.
Frank Swiderski9fa0d352010-05-27 14:06:00 -070039CRYPTOHOME_DEVICE_REGEX = r'^/home/\.shadow/.*/vault$'
Chris Masone963c9c22010-07-19 16:50:59 -070040CRYPTOHOME_INCOGNITO = 'guestfs'
Chris Masone93e65d02011-03-10 07:22:21 -080041CRYPTOHOME_MOUNT_PT = USER_DATA_DIR + '/user'
Chris Masonee7dd0162010-03-23 13:50:58 -070042
Ken Mixtere1fc4602010-09-23 19:26:12 -070043CRYPTOHOMED_LOG = '/var/log/cryptohomed.log'
44
Dale Curtis3ff98882011-05-11 16:39:53 -070045# Directories to copy out of cryptohome, relative to CRYPTOHOME_MOUNT_PT.
46CRYPTOHOME_DIRS_TO_RECOVER = ['crash', 'log']
47
Chris Masone761922b2012-02-03 14:34:24 -080048DISABLE_BROWSER_RESTART_MAGIC_FILE = '/var/run/disable_chrome_restart'
Chris Masone105706e2011-04-29 14:37:11 -070049DEFAULT_OWNERSHIP_TIMEOUT = 300 # Ownership is an inherently random process.
Daniel Erate98b6682010-03-26 09:02:52 -070050
Zdenek Behan3fa05802011-02-01 20:40:39 +010051FLIMFLAM_TEST_PATH = '/usr/lib/flimflam/test/'
52
Chris Masone32ca7d22011-03-01 09:53:27 -080053KEYGEN = 'keygen'
54
Chris Masonee7dd0162010-03-23 13:50:58 -070055LOGGED_IN_MAGIC_FILE = '/var/run/state/logged-in'
56
Chris Masone93e65d02011-03-10 07:22:21 -080057LOGIN_PROFILE = USER_DATA_DIR + '/Default'
Chris Masone2512a5f2010-07-26 11:37:20 -070058LOGIN_SERVICE = 'gaia'
59LOGIN_ERROR = 'Error=BadAuthentication'
David Jamesd51ac9c2011-09-10 00:45:24 -070060LOGIN_PROMPT_VISIBLE_MAGIC_FILE = '/tmp/uptime-login-prompt-visible'
Ken Mixter4446e6d2010-11-23 13:29:16 -080061LOGIN_TRUST_ROOTS = '/etc/login_trust_root.pem'
Sean O267c00b2010-08-31 15:54:55 +020062
Chris Masone105706e2011-04-29 14:37:11 -070063MOCK_OWNER_CERT = 'mock_owner_cert.pem'
64MOCK_OWNER_KEY = 'mock_owner_private.key'
65MOCK_OWNER_POLICY = 'mock_owner.policy'
66
Chris Masone8ded33d2011-07-18 10:56:12 -070067NETWORK_MANAGER = 'flimflam'
68
Chris Sosaed8013a2012-01-24 10:35:31 -080069ISSUE_AUTH_TOKEN_URL = '/accounts/IssueAuthToken'
Ken Mixter4446e6d2010-11-23 13:29:16 -080070
Gaurav Shah52e10402011-04-04 15:42:58 -070071OWNER_KEY_FILE = WHITELIST_DIR + '/owner.key'
Ken Mixter4446e6d2010-11-23 13:29:16 -080072
Chris Masone75340212011-07-28 13:56:09 -070073PORTAL_CHECK_URL = '/generate_204'
Chris Sosaed8013a2012-01-24 10:35:31 -080074PROCESS_LOGIN_URL = '/accounts/ProcessServiceLogin'
Chris Masone75340212011-07-28 13:56:09 -070075
Chris Sosaed8013a2012-01-24 10:35:31 -080076SERVICE_LOGIN_URL = '/accounts/ServiceLogin'
Ken Mixter4446e6d2010-11-23 13:29:16 -080077SESSION_MANAGER = 'session_manager'
Chris Masone0d55e682011-02-01 10:24:37 -080078SESSION_MANAGER_LOG = '/var/log/session_manager'
Chris Masonebbd576f2011-04-04 11:40:11 -070079SIGNED_POLICY_FILE = WHITELIST_DIR + '/policy'
Chris Masone75850362011-01-04 11:37:22 -080080SPECIAL_CASE_DOMAIN = 'gmail.com'
Ken Mixter4446e6d2010-11-23 13:29:16 -080081
Chris Sosaed8013a2012-01-24 10:35:31 -080082TOKEN_AUTH_URL = '/accounts/TokenAuth'
Ken Mixter4446e6d2010-11-23 13:29:16 -080083
84UI_LOG = '/var/log/ui/ui.LATEST'
Sean O267c00b2010-08-31 15:54:55 +020085UPDATE_ENGINE_LOG = '/var/log/update_engine.log'
Ken Mixter4446e6d2010-11-23 13:29:16 -080086
87WINDOW_MANAGER = 'chromeos-wm'
Gaurav Shah01dd4fb2011-08-25 15:08:42 -070088
89PKCS11_INIT_MAGIC_FILE = '/home/chronos/user/.tpm/.isinitialized'
Scott James Remnanta4f68582011-11-07 16:25:32 -080090
91RESOLV_CONF_FILE = '/etc/resolv.conf'
92
93FAKE_ROOT_CA_DIR = '/etc/fake_root_ca'
94FAKE_NSSDB_DIR = FAKE_ROOT_CA_DIR + '/nssdb'