Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chromeos/dbus/fake_auth_policy_client.cc

Issue 2491153003: Add Refresh{Device,User}Policies methods into AuthPolicyClient (Closed)
Patch Set: Addressed comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/dbus/fake_auth_policy_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_auth_policy_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698