Chris Masone | 105706e | 2011-04-29 14:37:11 -0700 | [diff] [blame] | 1 | # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 2 | # 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 Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 7 | # Constants used by other constants. |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 8 | USER_DATA_DIR = '/home/chronos' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 9 | WHITELIST_DIR = '/var/lib/whitelist' |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 10 | |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 11 | |
| 12 | # Rest of constants. |
| 13 | BROWSER = 'chrome' |
Chris Masone | 93e65d0 | 2011-03-10 07:22:21 -0800 | [diff] [blame] | 14 | BROWSER_EXE = '/opt/google/chrome/' + BROWSER |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 15 | |
Chris Masone | eb32f93 | 2011-07-27 16:51:07 -0700 | [diff] [blame] | 16 | CHROME_CORE_MAGIC_FILE = '/mnt/stateful_partition/etc/collect_chrome_crashes' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 17 | CHROME_LOG_DIR = '/var/log/chrome' |
| 18 | CHROME_WINDOW_MAPPED_MAGIC_FILE = \ |
| 19 | '/var/run/state/windowmanager/initial-chrome-window-mapped' |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 20 | |
Ken Mixter | fa61689 | 2010-11-11 11:59:08 -0800 | [diff] [blame] | 21 | CLEANUP_LOGS_PAUSED_FILE = '/var/lib/cleanup_logs_paused' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 22 | |
| 23 | CLIENT_LOGIN_URL = '/accounts/ClientLogin' |
| 24 | |
| 25 | CREDENTIALS = { |
Gaurav Shah | 52e1040 | 2011-04-04 15:42:58 -0700 | [diff] [blame] | 26 | '$mockowner': ['mockowner.test.account@gmail.com', 'perfsmurf'], |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 27 | '$default': ['performance.test.account@gmail.com', 'perfsmurf'], |
Chris Masone | 7585036 | 2011-01-04 11:37:22 -0800 | [diff] [blame] | 28 | '$apps': ['performance.test.account@googleapps.com', 'perfsmurf'], |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 29 | '$backdoor': ['chronos@gmail.com', 'chronos'], |
| 30 | } |
| 31 | |
Frank Swiderski | 52653c3 | 2010-05-26 17:40:47 -0700 | [diff] [blame] | 32 | # 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 Swiderski | 9fa0d35 | 2010-05-27 14:06:00 -0700 | [diff] [blame] | 36 | CRYPTOHOME_DEVICE_REGEX = r'^/home/\.shadow/.*/vault$' |
Chris Masone | 963c9c2 | 2010-07-19 16:50:59 -0700 | [diff] [blame] | 37 | CRYPTOHOME_INCOGNITO = 'guestfs' |
Chris Masone | 93e65d0 | 2011-03-10 07:22:21 -0800 | [diff] [blame] | 38 | CRYPTOHOME_MOUNT_PT = USER_DATA_DIR + '/user' |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 39 | |
Ken Mixter | e1fc460 | 2010-09-23 19:26:12 -0700 | [diff] [blame] | 40 | CRYPTOHOMED_LOG = '/var/log/cryptohomed.log' |
| 41 | |
Dale Curtis | 3ff9888 | 2011-05-11 16:39:53 -0700 | [diff] [blame] | 42 | # Directories to copy out of cryptohome, relative to CRYPTOHOME_MOUNT_PT. |
| 43 | CRYPTOHOME_DIRS_TO_RECOVER = ['crash', 'log'] |
| 44 | |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 45 | DISABLE_BROWSER_RESTART_MAGIC_FILE = '/tmp/disable_chrome_restart' |
Chris Masone | 105706e | 2011-04-29 14:37:11 -0700 | [diff] [blame] | 46 | DEFAULT_OWNERSHIP_TIMEOUT = 300 # Ownership is an inherently random process. |
Daniel Erat | e98b668 | 2010-03-26 09:02:52 -0700 | [diff] [blame] | 47 | |
Zdenek Behan | 3fa0580 | 2011-02-01 20:40:39 +0100 | [diff] [blame] | 48 | FLIMFLAM_TEST_PATH = '/usr/lib/flimflam/test/' |
| 49 | |
Chris Masone | 32ca7d2 | 2011-03-01 09:53:27 -0800 | [diff] [blame] | 50 | KEYGEN = 'keygen' |
| 51 | |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 52 | LOGGED_IN_MAGIC_FILE = '/var/run/state/logged-in' |
| 53 | |
Chris Masone | 93e65d0 | 2011-03-10 07:22:21 -0800 | [diff] [blame] | 54 | LOGIN_PROFILE = USER_DATA_DIR + '/Default' |
Chris Masone | 2512a5f | 2010-07-26 11:37:20 -0700 | [diff] [blame] | 55 | LOGIN_SERVICE = 'gaia' |
| 56 | LOGIN_ERROR = 'Error=BadAuthentication' |
David James | d51ac9c | 2011-09-10 00:45:24 -0700 | [diff] [blame^] | 57 | LOGIN_PROMPT_VISIBLE_MAGIC_FILE = '/tmp/uptime-login-prompt-visible' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 58 | LOGIN_TRUST_ROOTS = '/etc/login_trust_root.pem' |
Sean O | 267c00b | 2010-08-31 15:54:55 +0200 | [diff] [blame] | 59 | |
Chris Masone | 105706e | 2011-04-29 14:37:11 -0700 | [diff] [blame] | 60 | MOCK_OWNER_CERT = 'mock_owner_cert.pem' |
| 61 | MOCK_OWNER_KEY = 'mock_owner_private.key' |
| 62 | MOCK_OWNER_POLICY = 'mock_owner.policy' |
| 63 | |
Chris Masone | 8ded33d | 2011-07-18 10:56:12 -0700 | [diff] [blame] | 64 | NETWORK_MANAGER = 'flimflam' |
| 65 | |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 66 | ISSUE_AUTH_TOKEN_URL = '/accounts/IssueAuthToken' |
| 67 | |
Gaurav Shah | 52e1040 | 2011-04-04 15:42:58 -0700 | [diff] [blame] | 68 | OWNER_KEY_FILE = WHITELIST_DIR + '/owner.key' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 69 | |
Chris Masone | 7534021 | 2011-07-28 13:56:09 -0700 | [diff] [blame] | 70 | PORTAL_CHECK_URL = '/generate_204' |
Chris Masone | 96f5fa9 | 2011-08-18 16:14:36 -0700 | [diff] [blame] | 71 | PROCESS_LOGIN_URL = '/accounts/ProcessServiceLogin' |
Chris Masone | 7534021 | 2011-07-28 13:56:09 -0700 | [diff] [blame] | 72 | |
Chris Masone | 236a4fe | 2011-08-16 16:47:00 -0700 | [diff] [blame] | 73 | SERVICE_LOGIN_URL = '/accounts/ServiceLogin' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 74 | SESSION_MANAGER = 'session_manager' |
Chris Masone | 0d55e68 | 2011-02-01 10:24:37 -0800 | [diff] [blame] | 75 | SESSION_MANAGER_LOG = '/var/log/session_manager' |
Chris Masone | bbd576f | 2011-04-04 11:40:11 -0700 | [diff] [blame] | 76 | SIGNED_POLICY_FILE = WHITELIST_DIR + '/policy' |
Chris Masone | 7585036 | 2011-01-04 11:37:22 -0800 | [diff] [blame] | 77 | SPECIAL_CASE_DOMAIN = 'gmail.com' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 78 | |
| 79 | TOKEN_AUTH_URL = '/accounts/TokenAuth' |
| 80 | |
| 81 | UI_LOG = '/var/log/ui/ui.LATEST' |
Sean O | 267c00b | 2010-08-31 15:54:55 +0200 | [diff] [blame] | 82 | UPDATE_ENGINE_LOG = '/var/log/update_engine.log' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 83 | |
| 84 | WINDOW_MANAGER = 'chromeos-wm' |
Gaurav Shah | 01dd4fb | 2011-08-25 15:08:42 -0700 | [diff] [blame] | 85 | |
| 86 | PKCS11_INIT_MAGIC_FILE = '/home/chronos/user/.tpm/.isinitialized' |