Update TestSessionStateDelegate to properly represen user sessions
commita85f01f92467655de62c9c10b777b646d5b383b5
authorjonross <jonross@chromium.org>
Thu, 7 May 2015 02:05:44 +0000 (6 19:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 May 2015 02:06:18 +0000 (7 02:06 +0000)
treee9f4120ca28485e3907f71470b1d4b7d79439532
parent1f48f15dda8892c7d57e8155a011d9b4395299ba
Update TestSessionStateDelegate to properly represen user sessions

Update TestSessionStateDelegate internal states to properly follow user session
state changes.

This is a replacement change for: https://codereview.chromium.org/958133002/
The changes have been redone to remove the dependency on
user_manager::UserManager which is only available on Chrome OS builds.

TestSessionStateDelegate was using a series of booleans to represent various
states. It has been updated to user a TestUserManager for tracking user login
state, as well as updated to tracking the SessionState.

TEST=Ran ash_unittests, unit_tests, and TrayAccessibilityTest
BUG=459287

Review URL: https://codereview.chromium.org/1125033002

Cr-Commit-Position: refs/heads/master@{#328679}
ash/shelf/shelf_layout_manager.cc
ash/test/ash_test_base.h
ash/test/test_session_state_delegate.cc
ash/test/test_session_state_delegate.h