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

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

Issue 2607593002: Add fake implementation for AuthPolicyClient::RefreshUserPolicy() (Closed)
Patch Set: CHECK on serialization errors Created 3 years, 11 months 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/auth_policy_client.cc ('k') | chromeos/dbus/fake_auth_policy_client.cc » ('j') | 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 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 class AccountId;
15
14 namespace chromeos { 16 namespace chromeos {
15 17
16 class CHROMEOS_EXPORT FakeAuthPolicyClient : public AuthPolicyClient { 18 class CHROMEOS_EXPORT FakeAuthPolicyClient : public AuthPolicyClient {
17 public: 19 public:
18 FakeAuthPolicyClient(); 20 FakeAuthPolicyClient();
19 ~FakeAuthPolicyClient() override; 21 ~FakeAuthPolicyClient() override;
20 22
21 // DBusClient overrides. 23 // DBusClient overrides.
22 void Init(dbus::Bus* bus) override; 24 void Init(dbus::Bus* bus) override;
23 // AuthPolicyClient overrides. 25 // AuthPolicyClient overrides.
24 void JoinAdDomain(const std::string& machine_name, 26 void JoinAdDomain(const std::string& machine_name,
25 const std::string& user_principal_name, 27 const std::string& user_principal_name,
26 int password_fd, 28 int password_fd,
27 const JoinCallback& callback) override; 29 const JoinCallback& callback) override;
28 void AuthenticateUser(const std::string& user_principal_name, 30 void AuthenticateUser(const std::string& user_principal_name,
29 int password_fd, 31 int password_fd,
30 const AuthCallback& callback) override; 32 const AuthCallback& callback) override;
31 void RefreshDevicePolicy(const RefreshPolicyCallback& calllback) override; 33 void RefreshDevicePolicy(const RefreshPolicyCallback& calllback) override;
32 void RefreshUserPolicy(const std::string& account_id, 34 void RefreshUserPolicy(const AccountId& account_id,
33 const RefreshPolicyCallback& callback) override; 35 const RefreshPolicyCallback& callback) override;
34 36
35 private: 37 private:
36 DISALLOW_COPY_AND_ASSIGN(FakeAuthPolicyClient); 38 DISALLOW_COPY_AND_ASSIGN(FakeAuthPolicyClient);
37 }; 39 };
38 40
39 } // namespace chromeos 41 } // namespace chromeos
40 42
41 #endif // CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_ 43 #endif // CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/auth_policy_client.cc ('k') | chromeos/dbus/fake_auth_policy_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698