OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SESSION_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Returns how many times LockScreenShown() was called. | 98 // Returns how many times LockScreenShown() was called. |
99 int notify_lock_screen_shown_call_count() const { | 99 int notify_lock_screen_shown_call_count() const { |
100 return notify_lock_screen_shown_call_count_; | 100 return notify_lock_screen_shown_call_count_; |
101 } | 101 } |
102 | 102 |
103 // Returns how many times LockScreenDismissed() was called. | 103 // Returns how many times LockScreenDismissed() was called. |
104 int notify_lock_screen_dismissed_call_count() const { | 104 int notify_lock_screen_dismissed_call_count() const { |
105 return notify_lock_screen_dismissed_call_count_; | 105 return notify_lock_screen_dismissed_call_count_; |
106 } | 106 } |
107 | 107 |
| 108 void set_arc_available(bool available) { arc_available_ = available; } |
| 109 |
108 private: | 110 private: |
109 std::string device_policy_; | 111 std::string device_policy_; |
110 std::map<cryptohome::Identification, std::string> user_policies_; | 112 std::map<cryptohome::Identification, std::string> user_policies_; |
111 std::map<std::string, std::string> device_local_account_policy_; | 113 std::map<std::string, std::string> device_local_account_policy_; |
112 base::ObserverList<Observer> observers_; | 114 base::ObserverList<Observer> observers_; |
113 SessionManagerClient::ActiveSessionsMap user_sessions_; | 115 SessionManagerClient::ActiveSessionsMap user_sessions_; |
114 std::vector<std::string> server_backed_state_keys_; | 116 std::vector<std::string> server_backed_state_keys_; |
115 | 117 |
116 int start_device_wipe_call_count_; | 118 int start_device_wipe_call_count_; |
117 int notify_lock_screen_shown_call_count_; | 119 int notify_lock_screen_shown_call_count_; |
118 int notify_lock_screen_dismissed_call_count_; | 120 int notify_lock_screen_dismissed_call_count_; |
119 | 121 |
| 122 bool arc_available_; |
| 123 |
120 DISALLOW_COPY_AND_ASSIGN(FakeSessionManagerClient); | 124 DISALLOW_COPY_AND_ASSIGN(FakeSessionManagerClient); |
121 }; | 125 }; |
122 | 126 |
123 } // namespace chromeos | 127 } // namespace chromeos |
124 | 128 |
125 #endif // CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ | 129 #endif // CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ |
OLD | NEW |