OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/user_manager/user.h" | 5 #include "components/user_manager/user.h" |
6 | 6 |
7 #include "components/signin/core/account_id/account_id.h" | 7 #include "components/signin/core/account_id/account_id.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace user_manager { | 10 namespace user_manager { |
(...skipping 22 matching lines...) Expand all Loading... |
33 }; | 33 }; |
34 | 34 |
35 const AccountId account_id = AccountId::FromUserEmailGaiaId(kEmail, kGaiaId); | 35 const AccountId account_id = AccountId::FromUserEmailGaiaId(kEmail, kGaiaId); |
36 | 36 |
37 ScopedUser kiosk_user(User::CreateKioskAppUser(account_id)); | 37 ScopedUser kiosk_user(User::CreateKioskAppUser(account_id)); |
38 EXPECT_TRUE(kiosk_user.IsAffiliated()); | 38 EXPECT_TRUE(kiosk_user.IsAffiliated()); |
39 | 39 |
40 ScopedUser public_session_user(User::CreatePublicAccountUser(account_id)); | 40 ScopedUser public_session_user(User::CreatePublicAccountUser(account_id)); |
41 EXPECT_TRUE(public_session_user.IsAffiliated()); | 41 EXPECT_TRUE(public_session_user.IsAffiliated()); |
42 | 42 |
| 43 ScopedUser arc_kiosk_user(User::CreateArcKioskAppUser(account_id)); |
| 44 EXPECT_TRUE(arc_kiosk_user.IsAffiliated()); |
43 } | 45 } |
44 | 46 |
45 } // namespace user_manager | 47 } // namespace user_manager |
OLD | NEW |