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

Unified Diff: chromeos/dbus/fake_auth_policy_client.cc

Issue 2519823006: Chromad: Add authentication flow (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/dbus/fake_auth_policy_client.cc
diff --git a/chromeos/dbus/fake_auth_policy_client.cc b/chromeos/dbus/fake_auth_policy_client.cc
index edcf52857d7b7d204e333fc71bf0a3470840f50b..bea077d3be545ddee3585b7e965e9ccf2d5c8bb6 100644
--- a/chromeos/dbus/fake_auth_policy_client.cc
+++ b/chromeos/dbus/fake_auth_policy_client.cc
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "chromeos/dbus/fake_auth_policy_client.h"
+#include "base/md5.h"
+
namespace chromeos {
FakeAuthPolicyClient::FakeAuthPolicyClient() {}
@@ -12,21 +14,29 @@ FakeAuthPolicyClient::~FakeAuthPolicyClient() {}
void FakeAuthPolicyClient::Init(dbus::Bus* bus) {}
void FakeAuthPolicyClient::JoinAdDomain(const std::string& machine_name,
- const std::string& user,
+ const std::string& user_principal_name,
int password_fd,
const JoinCallback& callback) {
callback.Run(authpolicy::AD_JOIN_ERROR_NONE);
}
+void FakeAuthPolicyClient::AuthenticateUser(
+ const std::string& user_principal_name,
+ int password_fd,
+ const AuthCallback& callback) {
+ callback.Run(authpolicy::AUTH_USER_ERROR_NONE,
+ base::MD5String(user_principal_name));
+}
+
void FakeAuthPolicyClient::RefreshDevicePolicy(
const RefreshPolicyCallback& callback) {
callback.Run(true);
-};
+}
void FakeAuthPolicyClient::RefreshUserPolicy(
const std::string& account_id,
const RefreshPolicyCallback& callback) {
callback.Run(true);
-};
+}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698