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

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

Issue 2737733003: Add Active Directory login UI tests (Closed)
Patch Set: Rebase Created 3 years, 9 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
OLDNEW
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 21 matching lines...) Expand all
32 const AuthCallback& callback) override; 32 const AuthCallback& callback) override;
33 void RefreshDevicePolicy(const RefreshPolicyCallback& calllback) override; 33 void RefreshDevicePolicy(const RefreshPolicyCallback& calllback) override;
34 void RefreshUserPolicy(const AccountId& account_id, 34 void RefreshUserPolicy(const AccountId& account_id,
35 const RefreshPolicyCallback& callback) override; 35 const RefreshPolicyCallback& callback) override;
36 36
37 // Mark service as started. It's getting started by the 37 // Mark service as started. It's getting started by the
38 // UpstartClient::StartAuthPolicyService on the Active Directory managed 38 // UpstartClient::StartAuthPolicyService on the Active Directory managed
39 // devices. 39 // devices.
40 void set_started(bool started) { started_ = started; } 40 void set_started(bool started) { started_ = started; }
41 41
42 void set_auth_error(authpolicy::ErrorType auth_error) {
43 auth_error_ = auth_error;
44 }
45
42 private: 46 private:
43 bool started_ = false; 47 bool started_ = false;
48 authpolicy::ErrorType auth_error_ = authpolicy::ERROR_NONE;
44 DISALLOW_COPY_AND_ASSIGN(FakeAuthPolicyClient); 49 DISALLOW_COPY_AND_ASSIGN(FakeAuthPolicyClient);
45 }; 50 };
46 51
47 } // namespace chromeos 52 } // namespace chromeos
48 53
49 #endif // CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_ 54 #endif // CHROMEOS_DBUS_FAKE_AUTH_POLICY_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/preferences_browsertest.cc ('k') | chromeos/dbus/fake_auth_policy_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698