forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make PersistentSessionManagerClient more widely usable
PersistentSessionManagerClient is fake session manager client implementation used in auto_launched_kiosk_browsertest to test kiosk session restart (e.g. due a crash), and handling of non empty set of policy login switches. The client keeps track of the session state and per-user flags, persisting them between PRE_ and main test runs. This CL extracts this logic into a helper class - SessionFlagsManager. The helper class does not implement FakeSessionManagerClient any more. It relies on the existing session manager client to keep track of session state. The session state (active user, and user flags) is read from the session manager client, and persisted as SessionFlagsManager starts going out of scope. This makes LoginManagerMixin use SessionFlagsManager to set up login screen command line (which is SessionFlagsManager's default behavior). LoginManagerMixin exposes few methods that allow tests to configure SessionFlagsManager - for one, to enable logic for persisting session state between test runs (this is expected to be needed for a minority of test, so SessionFlagsManager will not run this logic by default) BUG=957725 Change-Id: Ia02b3cb660d206449dbad488ec9c57d2c9d67481 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1586516 Commit-Queue: Toni Baržić <tbarzic@chromium.org> Reviewed-by: Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#655382}
- Loading branch information
Toni Barzic
authored and
Commit Bot
committed
Apr 30, 2019
1 parent
3ac0e91
commit ea500dc
Showing
10 changed files
with
370 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.