| Index: components/user_manager/user_unittest.cc
|
| diff --git a/components/user_manager/user_unittest.cc b/components/user_manager/user_unittest.cc
|
| index 05f563f5d2dc4d13ce564f7d9f5a511db63f0047..eb3ca8bfcaadbeeabeb08c4a133d28c9b0932224 100644
|
| --- a/components/user_manager/user_unittest.cc
|
| +++ b/components/user_manager/user_unittest.cc
|
| @@ -44,4 +44,12 @@ TEST(UserTest, DeviceLocalAccountAffiliation) {
|
| EXPECT_TRUE(arc_kiosk_user.IsAffiliated());
|
| }
|
|
|
| +TEST(UserTest, UserSessionInitialized) {
|
| + const AccountId account_id = AccountId::FromUserEmailGaiaId(kEmail, kGaiaId);
|
| + std::unique_ptr<User> user(User::CreateRegularUser(account_id));
|
| + EXPECT_FALSE(user->profile_ever_initialized());
|
| + user->set_profile_ever_initialized(true);
|
| + EXPECT_TRUE(user->profile_ever_initialized());
|
| +}
|
| +
|
| } // namespace user_manager
|
|
|