OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 void Init(dbus::Bus* bus) override; | 24 void Init(dbus::Bus* bus) override; |
25 // AuthPolicyClient overrides. | 25 // AuthPolicyClient overrides. |
26 void JoinAdDomain(const std::string& machine_name, | 26 void JoinAdDomain(const std::string& machine_name, |
27 const std::string& user_principal_name, | 27 const std::string& user_principal_name, |
28 int password_fd, | 28 int password_fd, |
29 JoinCallback callback) override; | 29 JoinCallback callback) override; |
30 void AuthenticateUser(const std::string& user_principal_name, | 30 void AuthenticateUser(const std::string& user_principal_name, |
31 const std::string& object_guid, | 31 const std::string& object_guid, |
32 int password_fd, | 32 int password_fd, |
33 AuthCallback callback) override; | 33 AuthCallback callback) override; |
| 34 void GetUserStatus(const std::string& object_guid, |
| 35 GetUserStatusCallback callback) override; |
34 void RefreshDevicePolicy(RefreshPolicyCallback calllback) override; | 36 void RefreshDevicePolicy(RefreshPolicyCallback calllback) override; |
35 void RefreshUserPolicy(const AccountId& account_id, | 37 void RefreshUserPolicy(const AccountId& account_id, |
36 RefreshPolicyCallback callback) override; | 38 RefreshPolicyCallback callback) override; |
37 | 39 |
38 // Mark service as started. It's getting started by the | 40 // Mark service as started. It's getting started by the |
39 // UpstartClient::StartAuthPolicyService on the Active Directory managed | 41 // UpstartClient::StartAuthPolicyService on the Active Directory managed |
40 // devices. | 42 // devices. |
41 void set_started(bool started) { started_ = started; } | 43 void set_started(bool started) { started_ = started; } |
42 | 44 |
43 bool started() const { return started_; } | 45 bool started() const { return started_; } |
44 | 46 |
45 void set_auth_error(authpolicy::ErrorType auth_error) { | 47 void set_auth_error(authpolicy::ErrorType auth_error) { |
46 auth_error_ = auth_error; | 48 auth_error_ = auth_error; |
47 } | 49 } |
48 | 50 |
49 private: | 51 private: |
50 bool started_ = false; | 52 bool started_ = false; |
51 authpolicy::ErrorType auth_error_ = authpolicy::ERROR_NONE; | 53 authpolicy::ErrorType auth_error_ = authpolicy::ERROR_NONE; |
52 DISALLOW_COPY_AND_ASSIGN(FakeAuthPolicyClient); | 54 DISALLOW_COPY_AND_ASSIGN(FakeAuthPolicyClient); |
53 }; | 55 }; |
54 | 56 |
55 } // namespace chromeos | 57 } // namespace chromeos |
56 | 58 |
57 #endif // CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_ | 59 #endif // CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_ |
OLD | NEW |