OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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" |
11 | 11 |
12 #include "chromeos/dbus/auth_policy_client.h" | 12 #include "chromeos/dbus/auth_policy_client.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 class CHROMEOS_EXPORT FakeAuthPolicyClient : public AuthPolicyClient { | 16 class CHROMEOS_EXPORT FakeAuthPolicyClient : public AuthPolicyClient { |
17 public: | 17 public: |
18 FakeAuthPolicyClient(); | 18 FakeAuthPolicyClient(); |
19 ~FakeAuthPolicyClient() override; | 19 ~FakeAuthPolicyClient() override; |
20 | 20 |
21 // DBusClient overrides. | 21 // DBusClient overrides. |
22 void Init(dbus::Bus* bus) override; | 22 void Init(dbus::Bus* bus) override; |
23 // AuthPolicyClient overrides. | 23 // AuthPolicyClient overrides. |
24 void JoinAdDomain(const std::string& machine_name, | 24 void JoinAdDomain(const std::string& machine_name, |
25 const std::string& user, | 25 const std::string& user, |
26 int password_fd, | 26 int password_fd, |
27 const JoinCallback& callback) override; | 27 const JoinCallback& callback) override; |
28 void RefreshDevicePolicy(const RefreshPolicyCallback& calllback) override; | 28 void RefreshDevicePolicy(const RefreshPolicyCallback& callback) override; |
29 void RefreshUserPolicy(const std::string& account_id, | 29 void RefreshUserPolicy(const std::string& account_id, |
30 const RefreshPolicyCallback& calllback) override; | 30 const RefreshPolicyCallback& callback) override; |
31 | 31 |
32 private: | 32 private: |
33 DISALLOW_COPY_AND_ASSIGN(FakeAuthPolicyClient); | 33 DISALLOW_COPY_AND_ASSIGN(FakeAuthPolicyClient); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace chromeos | 36 } // namespace chromeos |
37 | 37 |
38 #endif // CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_ | 38 #endif // CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_ |
OLD | NEW |