Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 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 |
| 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' |
| 14 | |
| 15 | CHROME_LOG_DIR = '/var/log/chrome' |
| 16 | CHROME_WINDOW_MAPPED_MAGIC_FILE = \ |
| 17 | '/var/run/state/windowmanager/initial-chrome-window-mapped' |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 18 | |
Ken Mixter | fa61689 | 2010-11-11 11:59:08 -0800 | [diff] [blame] | 19 | CLEANUP_LOGS_PAUSED_FILE = '/var/lib/cleanup_logs_paused' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 20 | |
| 21 | CLIENT_LOGIN_URL = '/accounts/ClientLogin' |
| 22 | |
| 23 | CREDENTIALS = { |
| 24 | '$default': ['performance.test.account@gmail.com', 'perfsmurf'], |
Chris Masone | 7585036 | 2011-01-04 11:37:22 -0800 | [diff] [blame] | 25 | '$apps': ['performance.test.account@googleapps.com', 'perfsmurf'], |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 26 | '$backdoor': ['chronos@gmail.com', 'chronos'], |
| 27 | } |
| 28 | |
Frank Swiderski | 52653c3 | 2010-05-26 17:40:47 -0700 | [diff] [blame] | 29 | # TODO(fes): With the switch to ecryptfs, the cryptohome device is no longer |
| 30 | # static--it includes a system-specific hash of the username whose vault is |
| 31 | # mounted. seano points out that this is no longer a constant, and we may want |
| 32 | # to change the way tests dependent on this value work. |
Frank Swiderski | 9fa0d35 | 2010-05-27 14:06:00 -0700 | [diff] [blame] | 33 | CRYPTOHOME_DEVICE_REGEX = r'^/home/\.shadow/.*/vault$' |
Chris Masone | 963c9c2 | 2010-07-19 16:50:59 -0700 | [diff] [blame] | 34 | CRYPTOHOME_INCOGNITO = 'guestfs' |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 35 | CRYPTOHOME_MOUNT_PT = USER_DATA_DIR+'/user' |
| 36 | |
Ken Mixter | e1fc460 | 2010-09-23 19:26:12 -0700 | [diff] [blame] | 37 | CRYPTOHOMED_LOG = '/var/log/cryptohomed.log' |
| 38 | |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 39 | DISABLE_BROWSER_RESTART_MAGIC_FILE = '/tmp/disable_chrome_restart' |
Daniel Erat | e98b668 | 2010-03-26 09:02:52 -0700 | [diff] [blame] | 40 | |
Zdenek Behan | 3fa0580 | 2011-02-01 20:40:39 +0100 | [diff] [blame] | 41 | FLIMFLAM_TEST_PATH = '/usr/lib/flimflam/test/' |
| 42 | |
Chris Masone | 32ca7d2 | 2011-03-01 09:53:27 -0800 | [diff] [blame^] | 43 | KEYGEN = 'keygen' |
| 44 | |
Chris Masone | e7dd016 | 2010-03-23 13:50:58 -0700 | [diff] [blame] | 45 | LOGGED_IN_MAGIC_FILE = '/var/run/state/logged-in' |
| 46 | |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 47 | LOGIN_PROFILE = USER_DATA_DIR+'/Default' |
Chris Masone | 2512a5f | 2010-07-26 11:37:20 -0700 | [diff] [blame] | 48 | LOGIN_SERVICE = 'gaia' |
| 49 | LOGIN_ERROR = 'Error=BadAuthentication' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 50 | LOGIN_PROMPT_READY_MAGIC_FILE = '/tmp/uptime-login-prompt-ready' |
| 51 | LOGIN_TRUST_ROOTS = '/etc/login_trust_root.pem' |
Sean O | 267c00b | 2010-08-31 15:54:55 +0200 | [diff] [blame] | 52 | |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 53 | ISSUE_AUTH_TOKEN_URL = '/accounts/IssueAuthToken' |
| 54 | |
| 55 | OWNER_KEY_FILE = WHITELIST_DIR+'/owner.key' |
| 56 | |
| 57 | SESSION_MANAGER = 'session_manager' |
Chris Masone | 0d55e68 | 2011-02-01 10:24:37 -0800 | [diff] [blame] | 58 | SESSION_MANAGER_LOG = '/var/log/session_manager' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 59 | SIGNED_PREFERENCES_FILE = WHITELIST_DIR+'/preferences' |
Chris Masone | 7585036 | 2011-01-04 11:37:22 -0800 | [diff] [blame] | 60 | SPECIAL_CASE_DOMAIN = 'gmail.com' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 61 | |
| 62 | TOKEN_AUTH_URL = '/accounts/TokenAuth' |
| 63 | |
| 64 | UI_LOG = '/var/log/ui/ui.LATEST' |
Sean O | 267c00b | 2010-08-31 15:54:55 +0200 | [diff] [blame] | 65 | UPDATE_ENGINE_LOG = '/var/log/update_engine.log' |
Ken Mixter | 4446e6d | 2010-11-23 13:29:16 -0800 | [diff] [blame] | 66 | |
| 67 | WINDOW_MANAGER = 'chromeos-wm' |