blob: ea8ebd2b0f57bbb83131ad616fb4114ce0af72b6 [file] [log] [blame]
Chris Masonee7dd0162010-03-23 13:50:58 -07001# 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 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'
14
15CHROME_LOG_DIR = '/var/log/chrome'
16CHROME_WINDOW_MAPPED_MAGIC_FILE = \
17 '/var/run/state/windowmanager/initial-chrome-window-mapped'
Chris Masonee7dd0162010-03-23 13:50:58 -070018
Ken Mixterfa616892010-11-11 11:59:08 -080019CLEANUP_LOGS_PAUSED_FILE = '/var/lib/cleanup_logs_paused'
Ken Mixter4446e6d2010-11-23 13:29:16 -080020
21CLIENT_LOGIN_URL = '/accounts/ClientLogin'
22
23CREDENTIALS = {
24 '$default': ['performance.test.account@gmail.com', 'perfsmurf'],
Chris Masone75850362011-01-04 11:37:22 -080025 '$apps': ['performance.test.account@googleapps.com', 'perfsmurf'],
Ken Mixter4446e6d2010-11-23 13:29:16 -080026 '$backdoor': ['chronos@gmail.com', 'chronos'],
27}
28
Frank Swiderski52653c32010-05-26 17:40:47 -070029# 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 Swiderski9fa0d352010-05-27 14:06:00 -070033CRYPTOHOME_DEVICE_REGEX = r'^/home/\.shadow/.*/vault$'
Chris Masone963c9c22010-07-19 16:50:59 -070034CRYPTOHOME_INCOGNITO = 'guestfs'
Chris Masonee7dd0162010-03-23 13:50:58 -070035CRYPTOHOME_MOUNT_PT = USER_DATA_DIR+'/user'
36
Ken Mixtere1fc4602010-09-23 19:26:12 -070037CRYPTOHOMED_LOG = '/var/log/cryptohomed.log'
38
Ken Mixter4446e6d2010-11-23 13:29:16 -080039DISABLE_BROWSER_RESTART_MAGIC_FILE = '/tmp/disable_chrome_restart'
Daniel Erate98b6682010-03-26 09:02:52 -070040
Zdenek Behan3fa05802011-02-01 20:40:39 +010041FLIMFLAM_TEST_PATH = '/usr/lib/flimflam/test/'
42
Chris Masone32ca7d22011-03-01 09:53:27 -080043KEYGEN = 'keygen'
44
Chris Masonee7dd0162010-03-23 13:50:58 -070045LOGGED_IN_MAGIC_FILE = '/var/run/state/logged-in'
46
Ken Mixter4446e6d2010-11-23 13:29:16 -080047LOGIN_PROFILE = USER_DATA_DIR+'/Default'
Chris Masone2512a5f2010-07-26 11:37:20 -070048LOGIN_SERVICE = 'gaia'
49LOGIN_ERROR = 'Error=BadAuthentication'
Ken Mixter4446e6d2010-11-23 13:29:16 -080050LOGIN_PROMPT_READY_MAGIC_FILE = '/tmp/uptime-login-prompt-ready'
51LOGIN_TRUST_ROOTS = '/etc/login_trust_root.pem'
Sean O267c00b2010-08-31 15:54:55 +020052
Ken Mixter4446e6d2010-11-23 13:29:16 -080053ISSUE_AUTH_TOKEN_URL = '/accounts/IssueAuthToken'
54
55OWNER_KEY_FILE = WHITELIST_DIR+'/owner.key'
56
57SESSION_MANAGER = 'session_manager'
Chris Masone0d55e682011-02-01 10:24:37 -080058SESSION_MANAGER_LOG = '/var/log/session_manager'
Ken Mixter4446e6d2010-11-23 13:29:16 -080059SIGNED_PREFERENCES_FILE = WHITELIST_DIR+'/preferences'
Chris Masone75850362011-01-04 11:37:22 -080060SPECIAL_CASE_DOMAIN = 'gmail.com'
Ken Mixter4446e6d2010-11-23 13:29:16 -080061
62TOKEN_AUTH_URL = '/accounts/TokenAuth'
63
64UI_LOG = '/var/log/ui/ui.LATEST'
Sean O267c00b2010-08-31 15:54:55 +020065UPDATE_ENGINE_LOG = '/var/log/update_engine.log'
Ken Mixter4446e6d2010-11-23 13:29:16 -080066
67WINDOW_MANAGER = 'chromeos-wm'