OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/auth/parallel_authenticator.h" | 5 #include "chrome/browser/chromeos/login/auth/parallel_authenticator.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chromeos/cryptohome/mock_async_method_caller.h" | 30 #include "chromeos/cryptohome/mock_async_method_caller.h" |
31 #include "chromeos/cryptohome/system_salt_getter.h" | 31 #include "chromeos/cryptohome/system_salt_getter.h" |
32 #include "chromeos/dbus/fake_cryptohome_client.h" | 32 #include "chromeos/dbus/fake_cryptohome_client.h" |
33 #include "chromeos/dbus/fake_dbus_thread_manager.h" | 33 #include "chromeos/dbus/fake_dbus_thread_manager.h" |
34 #include "chromeos/login/auth/key.h" | 34 #include "chromeos/login/auth/key.h" |
35 #include "chromeos/login/auth/mock_auth_status_consumer.h" | 35 #include "chromeos/login/auth/mock_auth_status_consumer.h" |
36 #include "chromeos/login/auth/test_attempt_state.h" | 36 #include "chromeos/login/auth/test_attempt_state.h" |
37 #include "chromeos/login/auth/user_context.h" | 37 #include "chromeos/login/auth/user_context.h" |
38 #include "components/user_manager/user.h" | 38 #include "components/user_manager/user.h" |
39 #include "content/public/test/test_browser_thread_bundle.h" | 39 #include "content/public/test/test_browser_thread_bundle.h" |
40 #include "crypto/nss_util.h" | |
41 #include "crypto/nss_util_internal.h" | 40 #include "crypto/nss_util_internal.h" |
| 41 #include "crypto/scoped_test_nss_chromeos_user.h" |
42 #include "google_apis/gaia/mock_url_fetcher_factory.h" | 42 #include "google_apis/gaia/mock_url_fetcher_factory.h" |
43 #include "net/base/net_errors.h" | 43 #include "net/base/net_errors.h" |
44 #include "net/url_request/url_request_status.h" | 44 #include "net/url_request/url_request_status.h" |
45 #include "testing/gmock/include/gmock/gmock.h" | 45 #include "testing/gmock/include/gmock/gmock.h" |
46 #include "testing/gtest/include/gtest/gtest.h" | 46 #include "testing/gtest/include/gtest/gtest.h" |
47 #include "third_party/cros_system_api/dbus/service_constants.h" | 47 #include "third_party/cros_system_api/dbus/service_constants.h" |
48 #include "url/gurl.h" | 48 #include "url/gurl.h" |
49 | 49 |
50 using ::testing::Invoke; | 50 using ::testing::Invoke; |
51 using ::testing::Return; | 51 using ::testing::Return; |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 mock_caller_->SetUp(true, cryptohome::MOUNT_ERROR_NONE); | 736 mock_caller_->SetUp(true, cryptohome::MOUNT_ERROR_NONE); |
737 EXPECT_CALL(*mock_caller_, AsyncCheckKey(user_context_.GetUserID(), _, _)) | 737 EXPECT_CALL(*mock_caller_, AsyncCheckKey(user_context_.GetUserID(), _, _)) |
738 .Times(1) | 738 .Times(1) |
739 .RetiresOnSaturation(); | 739 .RetiresOnSaturation(); |
740 | 740 |
741 auth_->AuthenticateToUnlock(user_context_); | 741 auth_->AuthenticateToUnlock(user_context_); |
742 base::MessageLoop::current()->Run(); | 742 base::MessageLoop::current()->Run(); |
743 } | 743 } |
744 | 744 |
745 } // namespace chromeos | 745 } // namespace chromeos |
OLD | NEW |