| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // Returns how many times LockScreenShown() was called. | 96 // Returns how many times LockScreenShown() was called. |
| 97 int notify_lock_screen_shown_call_count() const { | 97 int notify_lock_screen_shown_call_count() const { |
| 98 return notify_lock_screen_shown_call_count_; | 98 return notify_lock_screen_shown_call_count_; |
| 99 } | 99 } |
| 100 | 100 |
| 101 // Returns how many times LockScreenDismissed() was called. | 101 // Returns how many times LockScreenDismissed() was called. |
| 102 int notify_lock_screen_dismissed_call_count() const { | 102 int notify_lock_screen_dismissed_call_count() const { |
| 103 return notify_lock_screen_dismissed_call_count_; | 103 return notify_lock_screen_dismissed_call_count_; |
| 104 } | 104 } |
| 105 | 105 |
| 106 void set_arc_available(bool available) { arc_available_ = available; } |
| 107 |
| 106 private: | 108 private: |
| 107 std::string device_policy_; | 109 std::string device_policy_; |
| 108 std::map<std::string, std::string> user_policies_; | 110 std::map<std::string, std::string> user_policies_; |
| 109 std::map<std::string, std::string> device_local_account_policy_; | 111 std::map<std::string, std::string> device_local_account_policy_; |
| 110 base::ObserverList<Observer> observers_; | 112 base::ObserverList<Observer> observers_; |
| 111 SessionManagerClient::ActiveSessionsMap user_sessions_; | 113 SessionManagerClient::ActiveSessionsMap user_sessions_; |
| 112 std::vector<std::string> server_backed_state_keys_; | 114 std::vector<std::string> server_backed_state_keys_; |
| 113 | 115 |
| 114 int start_device_wipe_call_count_; | 116 int start_device_wipe_call_count_; |
| 115 int notify_lock_screen_shown_call_count_; | 117 int notify_lock_screen_shown_call_count_; |
| 116 int notify_lock_screen_dismissed_call_count_; | 118 int notify_lock_screen_dismissed_call_count_; |
| 117 | 119 |
| 120 bool arc_available_; |
| 121 |
| 118 DISALLOW_COPY_AND_ASSIGN(FakeSessionManagerClient); | 122 DISALLOW_COPY_AND_ASSIGN(FakeSessionManagerClient); |
| 119 }; | 123 }; |
| 120 | 124 |
| 121 } // namespace chromeos | 125 } // namespace chromeos |
| 122 | 126 |
| 123 #endif // CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ | 127 #endif // CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ |
| OLD | NEW |