blob: 902eba367261a37eee62ccb90388beff2bfb87f6 [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
23CLIENT_LOGIN_URL = '/accounts/ClientLogin'
24
25CREDENTIALS = {
Gaurav Shah52e10402011-04-04 15:42:58 -070026 '$mockowner': ['mockowner.test.account@gmail.com', 'perfsmurf'],
Ken Mixter4446e6d2010-11-23 13:29:16 -080027 '$default': ['performance.test.account@gmail.com', 'perfsmurf'],
Chris Masone75850362011-01-04 11:37:22 -080028 '$apps': ['performance.test.account@googleapps.com', 'perfsmurf'],
Ken Mixter4446e6d2010-11-23 13:29:16 -080029 '$backdoor': ['chronos@gmail.com', 'chronos'],
30}
31
Frank Swiderski52653c32010-05-26 17:40:47 -070032# TODO(fes): With the switch to ecryptfs, the cryptohome device is no longer
33# static--it includes a system-specific hash of the username whose vault is
34# mounted. seano points out that this is no longer a constant, and we may want
35# to change the way tests dependent on this value work.
Frank Swiderski9fa0d352010-05-27 14:06:00 -070036CRYPTOHOME_DEVICE_REGEX = r'^/home/\.shadow/.*/vault$'
Chris Masone963c9c22010-07-19 16:50:59 -070037CRYPTOHOME_INCOGNITO = 'guestfs'
Chris Masone93e65d02011-03-10 07:22:21 -080038CRYPTOHOME_MOUNT_PT = USER_DATA_DIR + '/user'
Chris Masonee7dd0162010-03-23 13:50:58 -070039
Ken Mixtere1fc4602010-09-23 19:26:12 -070040CRYPTOHOMED_LOG = '/var/log/cryptohomed.log'
41
Dale Curtis3ff98882011-05-11 16:39:53 -070042# Directories to copy out of cryptohome, relative to CRYPTOHOME_MOUNT_PT.
43CRYPTOHOME_DIRS_TO_RECOVER = ['crash', 'log']
44
Ken Mixter4446e6d2010-11-23 13:29:16 -080045DISABLE_BROWSER_RESTART_MAGIC_FILE = '/tmp/disable_chrome_restart'
Chris Masone105706e2011-04-29 14:37:11 -070046DEFAULT_OWNERSHIP_TIMEOUT = 300 # Ownership is an inherently random process.
Daniel Erate98b6682010-03-26 09:02:52 -070047
Zdenek Behan3fa05802011-02-01 20:40:39 +010048FLIMFLAM_TEST_PATH = '/usr/lib/flimflam/test/'
49
Chris Masone32ca7d22011-03-01 09:53:27 -080050KEYGEN = 'keygen'
51
Chris Masonee7dd0162010-03-23 13:50:58 -070052LOGGED_IN_MAGIC_FILE = '/var/run/state/logged-in'
53
Chris Masone93e65d02011-03-10 07:22:21 -080054LOGIN_PROFILE = USER_DATA_DIR + '/Default'
Chris Masone2512a5f2010-07-26 11:37:20 -070055LOGIN_SERVICE = 'gaia'
56LOGIN_ERROR = 'Error=BadAuthentication'
David Jamesd51ac9c2011-09-10 00:45:24 -070057LOGIN_PROMPT_VISIBLE_MAGIC_FILE = '/tmp/uptime-login-prompt-visible'
Ken Mixter4446e6d2010-11-23 13:29:16 -080058LOGIN_TRUST_ROOTS = '/etc/login_trust_root.pem'
Sean O267c00b2010-08-31 15:54:55 +020059
Chris Masone105706e2011-04-29 14:37:11 -070060MOCK_OWNER_CERT = 'mock_owner_cert.pem'
61MOCK_OWNER_KEY = 'mock_owner_private.key'
62MOCK_OWNER_POLICY = 'mock_owner.policy'
63
Chris Masone8ded33d2011-07-18 10:56:12 -070064NETWORK_MANAGER = 'flimflam'
65
Ken Mixter4446e6d2010-11-23 13:29:16 -080066ISSUE_AUTH_TOKEN_URL = '/accounts/IssueAuthToken'
67
Gaurav Shah52e10402011-04-04 15:42:58 -070068OWNER_KEY_FILE = WHITELIST_DIR + '/owner.key'
Ken Mixter4446e6d2010-11-23 13:29:16 -080069
Chris Masone75340212011-07-28 13:56:09 -070070PORTAL_CHECK_URL = '/generate_204'
Chris Masone96f5fa92011-08-18 16:14:36 -070071PROCESS_LOGIN_URL = '/accounts/ProcessServiceLogin'
Chris Masone75340212011-07-28 13:56:09 -070072
Chris Masone236a4fe2011-08-16 16:47:00 -070073SERVICE_LOGIN_URL = '/accounts/ServiceLogin'
Ken Mixter4446e6d2010-11-23 13:29:16 -080074SESSION_MANAGER = 'session_manager'
Chris Masone0d55e682011-02-01 10:24:37 -080075SESSION_MANAGER_LOG = '/var/log/session_manager'
Chris Masonebbd576f2011-04-04 11:40:11 -070076SIGNED_POLICY_FILE = WHITELIST_DIR + '/policy'
Chris Masone75850362011-01-04 11:37:22 -080077SPECIAL_CASE_DOMAIN = 'gmail.com'
Ken Mixter4446e6d2010-11-23 13:29:16 -080078
79TOKEN_AUTH_URL = '/accounts/TokenAuth'
80
81UI_LOG = '/var/log/ui/ui.LATEST'
Sean O267c00b2010-08-31 15:54:55 +020082UPDATE_ENGINE_LOG = '/var/log/update_engine.log'
Ken Mixter4446e6d2010-11-23 13:29:16 -080083
84WINDOW_MANAGER = 'chromeos-wm'
Gaurav Shah01dd4fb2011-08-25 15:08:42 -070085
86PKCS11_INIT_MAGIC_FILE = '/home/chronos/user/.tpm/.isinitialized'