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 "chromeos/login/auth/fake_extended_authenticator.h" | 5 #include "chromeos/login/auth/fake_extended_authenticator.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chromeos/login/auth/auth_status_consumer.h" | 8 #include "chromeos/login/auth/auth_status_consumer.h" |
9 #include "components/signin/core/account_id/account_id.h" | 9 #include "components/signin/core/account_id/account_id.h" |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 if (!success_callback.is_null()) | 58 if (!success_callback.is_null()) |
59 success_callback.Run(); | 59 success_callback.Run(); |
60 OnAuthSuccess(context); | 60 OnAuthSuccess(context); |
61 return; | 61 return; |
62 } | 62 } |
63 | 63 |
64 OnAuthFailure(FAILED_MOUNT, | 64 OnAuthFailure(FAILED_MOUNT, |
65 AuthFailure(AuthFailure::UNLOCK_FAILED)); | 65 AuthFailure(AuthFailure::UNLOCK_FAILED)); |
66 } | 66 } |
67 | 67 |
68 void FakeExtendedAuthenticator::CreateMount(const std::string& user_id, | 68 void FakeExtendedAuthenticator::CreateMount( |
69 const std::vector<cryptohome::KeyDefinition>& keys, | 69 const AccountId& account_id, |
70 const ResultCallback& success_callback) { | 70 const std::vector<cryptohome::KeyDefinition>& keys, |
| 71 const ResultCallback& success_callback) { |
71 NOTREACHED(); | 72 NOTREACHED(); |
72 } | 73 } |
73 | 74 |
74 void FakeExtendedAuthenticator::AddKey(const UserContext& context, | 75 void FakeExtendedAuthenticator::AddKey(const UserContext& context, |
75 const cryptohome::KeyDefinition& key, | 76 const cryptohome::KeyDefinition& key, |
76 bool replace_existing, | 77 bool replace_existing, |
77 const base::Closure& success_callback) { | 78 const base::Closure& success_callback) { |
78 NOTREACHED(); | 79 NOTREACHED(); |
79 } | 80 } |
80 | 81 |
(...skipping 25 matching lines...) Expand all Loading... |
106 | 107 |
107 void FakeExtendedAuthenticator::OnAuthFailure(AuthState state, | 108 void FakeExtendedAuthenticator::OnAuthFailure(AuthState state, |
108 const AuthFailure& error) { | 109 const AuthFailure& error) { |
109 if (consumer_) | 110 if (consumer_) |
110 consumer_->OnAuthenticationFailure(state); | 111 consumer_->OnAuthenticationFailure(state); |
111 if (old_consumer_) | 112 if (old_consumer_) |
112 old_consumer_->OnAuthFailure(error); | 113 old_consumer_->OnAuthFailure(error); |
113 } | 114 } |
114 | 115 |
115 } // namespace chromeos | 116 } // namespace chromeos |
OLD | NEW |