| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 .WillRepeatedly(Return(true)); | 173 .WillRepeatedly(Return(true)); |
| 174 EXPECT_CALL(*mock_user_manager_, IsKnownUser(kNewUsername)) | 174 EXPECT_CALL(*mock_user_manager_, IsKnownUser(kNewUsername)) |
| 175 .Times(AnyNumber()) | 175 .Times(AnyNumber()) |
| 176 .WillRepeatedly(Return(false)); | 176 .WillRepeatedly(Return(false)); |
| 177 EXPECT_CALL(*mock_user_manager_, IsUserLoggedIn()) | 177 EXPECT_CALL(*mock_user_manager_, IsUserLoggedIn()) |
| 178 .Times(AnyNumber()) | 178 .Times(AnyNumber()) |
| 179 .WillRepeatedly(Return(false)); | 179 .WillRepeatedly(Return(false)); |
| 180 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsGuest()) | 180 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsGuest()) |
| 181 .Times(AnyNumber()) | 181 .Times(AnyNumber()) |
| 182 .WillRepeatedly(Return(false)); | 182 .WillRepeatedly(Return(false)); |
| 183 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsDemoUser()) | |
| 184 .Times(AnyNumber()) | |
| 185 .WillRepeatedly(Return(false)); | |
| 186 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsPublicAccount()) | 183 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsPublicAccount()) |
| 187 .Times(AnyNumber()) | 184 .Times(AnyNumber()) |
| 188 .WillRepeatedly(Return(false)); | 185 .WillRepeatedly(Return(false)); |
| 189 EXPECT_CALL(*mock_user_manager_, IsSessionStarted()) | 186 EXPECT_CALL(*mock_user_manager_, IsSessionStarted()) |
| 190 .Times(AnyNumber()) | 187 .Times(AnyNumber()) |
| 191 .WillRepeatedly(Return(false)); | 188 .WillRepeatedly(Return(false)); |
| 192 EXPECT_CALL(*mock_user_manager_, IsCurrentUserNew()) | 189 EXPECT_CALL(*mock_user_manager_, IsCurrentUserNew()) |
| 193 .Times(AnyNumber()) | 190 .Times(AnyNumber()) |
| 194 .WillRepeatedly(Return(false)); | 191 .WillRepeatedly(Return(false)); |
| 195 EXPECT_CALL(*mock_user_manager_, Shutdown()) | 192 EXPECT_CALL(*mock_user_manager_, Shutdown()) |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 // First run propagates public accounts and stores them in Local State. | 829 // First run propagates public accounts and stores them in Local State. |
| 833 } | 830 } |
| 834 | 831 |
| 835 // See http://crbug.com/393704; flaky. | 832 // See http://crbug.com/393704; flaky. |
| 836 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, | 833 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, |
| 837 DISABLED_TestLoadingPublicUsersFromLocalState) { | 834 DISABLED_TestLoadingPublicUsersFromLocalState) { |
| 838 // Second run loads list of public accounts from Local State. | 835 // Second run loads list of public accounts from Local State. |
| 839 } | 836 } |
| 840 | 837 |
| 841 } // namespace chromeos | 838 } // namespace chromeos |
| OLD | NEW |