Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: chromeos/login/auth/fake_extended_authenticator.cc

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/login/auth/fake_extended_authenticator.h ('k') | chromeos/login/auth/login_performer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698