| 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 #include "chromeos/dbus/fake_auth_policy_client.h" | 4 #include "chromeos/dbus/fake_auth_policy_client.h" |
| 5 | 5 |
| 6 namespace chromeos { | 6 namespace chromeos { |
| 7 | 7 |
| 8 FakeAuthPolicyClient::FakeAuthPolicyClient() {} | 8 FakeAuthPolicyClient::FakeAuthPolicyClient() {} |
| 9 | 9 |
| 10 FakeAuthPolicyClient::~FakeAuthPolicyClient() {} | 10 FakeAuthPolicyClient::~FakeAuthPolicyClient() {} |
| 11 | 11 |
| 12 void FakeAuthPolicyClient::Init(dbus::Bus* bus) {} | 12 void FakeAuthPolicyClient::Init(dbus::Bus* bus) {} |
| 13 | 13 |
| 14 void FakeAuthPolicyClient::JoinAdDomain(const std::string& machine_name, | 14 void FakeAuthPolicyClient::JoinAdDomain(const std::string& machine_name, |
| 15 const std::string& user, | 15 const std::string& user, |
| 16 int password_fd, | 16 int password_fd, |
| 17 const JoinCallback& callback) { | 17 const JoinCallback& callback) { |
| 18 callback.Run(authpolicy::AD_JOIN_ERROR_NONE); | 18 callback.Run(authpolicy::AD_JOIN_ERROR_NONE); |
| 19 } | 19 } |
| 20 | 20 |
| 21 void FakeAuthPolicyClient::RefreshDevicePolicy( |
| 22 const RefreshPolicyCallback& callback) { |
| 23 callback.Run(true); |
| 24 }; |
| 25 |
| 26 void FakeAuthPolicyClient::RefreshUserPolicy( |
| 27 const std::string& account_id, |
| 28 const RefreshPolicyCallback& callback) { |
| 29 callback.Run(true); |
| 30 }; |
| 31 |
| 21 } // namespace chromeos | 32 } // namespace chromeos |
| OLD | NEW |