| 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
|
|
|