OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> |
| 6 |
5 #include <map> | 7 #include <map> |
6 #include <string> | 8 #include <string> |
7 | 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
10 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
11 #include "base/values.h" | 13 #include "base/values.h" |
12 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" | 14 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" |
13 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 15 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
14 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 16 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 ON_CALL(*mock_user_manager_, IsCurrentUserNonCryptohomeDataEphemeral()) | 368 ON_CALL(*mock_user_manager_, IsCurrentUserNonCryptohomeDataEphemeral()) |
367 .WillByDefault(Return(true)); | 369 .WillByDefault(Return(true)); |
368 | 370 |
369 SetAppManagerReady(profile_.get()); | 371 SetAppManagerReady(profile_.get()); |
370 EXPECT_FALSE(EasyUnlockService::Get(profile_.get())->IsAllowed()); | 372 EXPECT_FALSE(EasyUnlockService::Get(profile_.get())->IsAllowed()); |
371 EXPECT_TRUE( | 373 EXPECT_TRUE( |
372 EasyUnlockAppInState(profile_.get(), TestAppManager::STATE_NOT_LOADED)); | 374 EasyUnlockAppInState(profile_.get(), TestAppManager::STATE_NOT_LOADED)); |
373 } | 375 } |
374 | 376 |
375 } // namespace | 377 } // namespace |
OLD | NEW |