| 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 aaaa9b72d7ef785908f9e5c9e60bb328f9db10ae..02a9b5bea6e7a75c0810cf9f73d8544e487fa73f 100644
|
| --- a/chromeos/dbus/fake_auth_policy_client.cc
|
| +++ b/chromeos/dbus/fake_auth_policy_client.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| #include "base/location.h"
|
| +#include "base/md5.h"
|
| #include "base/path_service.h"
|
| #include "base/task_runner_util.h"
|
| #include "base/threading/worker_pool.h"
|
| @@ -61,12 +62,20 @@ 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::types::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) {
|
| if (!base::PostTaskAndReplyWithResult(
|
|
|