| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 .WillRepeatedly(Return(true)); | 139 .WillRepeatedly(Return(true)); |
| 140 EXPECT_CALL(*mock_user_manager_, IsKnownUser(kNewUsername)) | 140 EXPECT_CALL(*mock_user_manager_, IsKnownUser(kNewUsername)) |
| 141 .Times(AnyNumber()) | 141 .Times(AnyNumber()) |
| 142 .WillRepeatedly(Return(false)); | 142 .WillRepeatedly(Return(false)); |
| 143 EXPECT_CALL(*mock_user_manager_, IsUserLoggedIn()) | 143 EXPECT_CALL(*mock_user_manager_, IsUserLoggedIn()) |
| 144 .Times(AnyNumber()) | 144 .Times(AnyNumber()) |
| 145 .WillRepeatedly(Return(false)); | 145 .WillRepeatedly(Return(false)); |
| 146 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsGuest()) | 146 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsGuest()) |
| 147 .Times(AnyNumber()) | 147 .Times(AnyNumber()) |
| 148 .WillRepeatedly(Return(false)); | 148 .WillRepeatedly(Return(false)); |
| 149 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsDemoUser()) | |
| 150 .Times(AnyNumber()) | |
| 151 .WillRepeatedly(Return(false)); | |
| 152 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsPublicAccount()) | 149 EXPECT_CALL(*mock_user_manager_, IsLoggedInAsPublicAccount()) |
| 153 .Times(AnyNumber()) | 150 .Times(AnyNumber()) |
| 154 .WillRepeatedly(Return(false)); | 151 .WillRepeatedly(Return(false)); |
| 155 EXPECT_CALL(*mock_user_manager_, IsSessionStarted()) | 152 EXPECT_CALL(*mock_user_manager_, IsSessionStarted()) |
| 156 .Times(AnyNumber()) | 153 .Times(AnyNumber()) |
| 157 .WillRepeatedly(Return(false)); | 154 .WillRepeatedly(Return(false)); |
| 158 EXPECT_CALL(*mock_user_manager_, IsCurrentUserNew()) | 155 EXPECT_CALL(*mock_user_manager_, IsCurrentUserNew()) |
| 159 .Times(AnyNumber()) | 156 .Times(AnyNumber()) |
| 160 .WillRepeatedly(Return(false)); | 157 .WillRepeatedly(Return(false)); |
| 161 EXPECT_CALL(*mock_user_manager_, Shutdown()) | 158 EXPECT_CALL(*mock_user_manager_, Shutdown()) |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 // First run propagates public accounts and stores them in Local State. | 677 // First run propagates public accounts and stores them in Local State. |
| 681 } | 678 } |
| 682 | 679 |
| 683 // See http://crbug.com/393704; flaky. | 680 // See http://crbug.com/393704; flaky. |
| 684 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, | 681 IN_PROC_BROWSER_TEST_F(ExistingUserControllerPublicSessionTest, |
| 685 DISABLED_TestLoadingPublicUsersFromLocalState) { | 682 DISABLED_TestLoadingPublicUsersFromLocalState) { |
| 686 // Second run loads list of public accounts from Local State. | 683 // Second run loads list of public accounts from Local State. |
| 687 } | 684 } |
| 688 | 685 |
| 689 } // namespace chromeos | 686 } // namespace chromeos |
| OLD | NEW |