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 "chrome/browser/chromeos/login/login_utils.h" | 5 #include "chrome/browser/chromeos/login/login_utils.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 cryptohome_ = new MockCryptohomeLibrary(); | 161 cryptohome_ = new MockCryptohomeLibrary(); |
162 EXPECT_CALL(*cryptohome_, InstallAttributesIsReady()) | 162 EXPECT_CALL(*cryptohome_, InstallAttributesIsReady()) |
163 .WillRepeatedly(Return(true)); | 163 .WillRepeatedly(Return(true)); |
164 EXPECT_CALL(*cryptohome_, InstallAttributesIsInvalid()) | 164 EXPECT_CALL(*cryptohome_, InstallAttributesIsInvalid()) |
165 .WillRepeatedly(Return(false)); | 165 .WillRepeatedly(Return(false)); |
166 EXPECT_CALL(*cryptohome_, InstallAttributesIsFirstInstall()) | 166 EXPECT_CALL(*cryptohome_, InstallAttributesIsFirstInstall()) |
167 .WillRepeatedly(Return(true)); | 167 .WillRepeatedly(Return(true)); |
168 EXPECT_CALL(*cryptohome_, TpmIsEnabled()) | 168 EXPECT_CALL(*cryptohome_, TpmIsEnabled()) |
169 .WillRepeatedly(Return(false)); | 169 .WillRepeatedly(Return(false)); |
170 EXPECT_CALL(*cryptohome_, IsMounted()) | |
171 .WillRepeatedly(Return(true)); | |
172 EXPECT_CALL(*cryptohome_, InstallAttributesSet(kAttributeOwned, kTrue)) | 170 EXPECT_CALL(*cryptohome_, InstallAttributesSet(kAttributeOwned, kTrue)) |
173 .WillRepeatedly(Return(true)); | 171 .WillRepeatedly(Return(true)); |
174 EXPECT_CALL(*cryptohome_, InstallAttributesSet(kAttributeOwner, | 172 EXPECT_CALL(*cryptohome_, InstallAttributesSet(kAttributeOwner, |
175 kUsername)) | 173 kUsername)) |
176 .WillRepeatedly(Return(true)); | 174 .WillRepeatedly(Return(true)); |
177 EXPECT_CALL(*cryptohome_, InstallAttributesSet(kAttrEnterpriseDomain, | 175 EXPECT_CALL(*cryptohome_, InstallAttributesSet(kAttrEnterpriseDomain, |
178 kDomain)) | 176 kDomain)) |
179 .WillRepeatedly(Return(true)); | 177 .WillRepeatedly(Return(true)); |
180 EXPECT_CALL(*cryptohome_, InstallAttributesSet(kAttrEnterpriseMode, | 178 EXPECT_CALL(*cryptohome_, InstallAttributesSet(kAttrEnterpriseMode, |
181 kMode)) | 179 kMode)) |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 } | 512 } |
515 | 513 |
516 INSTANTIATE_TEST_CASE_P( | 514 INSTANTIATE_TEST_CASE_P( |
517 LoginUtilsBlockingLoginTestInstance, | 515 LoginUtilsBlockingLoginTestInstance, |
518 LoginUtilsBlockingLoginTest, | 516 LoginUtilsBlockingLoginTest, |
519 testing::Values(0, 1, 2, 3, 4, 5)); | 517 testing::Values(0, 1, 2, 3, 4, 5)); |
520 | 518 |
521 } // namespace | 519 } // namespace |
522 | 520 |
523 } | 521 } |
OLD | NEW |