OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UPDATE_ENGINE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 return reboot_after_update_call_count_; | 61 return reboot_after_update_call_count_; |
62 } | 62 } |
63 | 63 |
64 // Returns how many times Rollback() is called. | 64 // Returns how many times Rollback() is called. |
65 int rollback_call_count() const { return rollback_call_count_; } | 65 int rollback_call_count() const { return rollback_call_count_; } |
66 | 66 |
67 // Returns how many times Rollback() is called. | 67 // Returns how many times Rollback() is called. |
68 int can_rollback_call_count() const { return can_rollback_call_count_; } | 68 int can_rollback_call_count() const { return can_rollback_call_count_; } |
69 | 69 |
70 private: | 70 private: |
| 71 ObserverList<Observer> observers_; |
71 std::queue<UpdateEngineClient::Status> status_queue_; | 72 std::queue<UpdateEngineClient::Status> status_queue_; |
72 UpdateEngineClient::Status default_status_; | 73 UpdateEngineClient::Status default_status_; |
73 UpdateEngineClient::UpdateCheckResult update_check_result_; | 74 UpdateEngineClient::UpdateCheckResult update_check_result_; |
74 bool can_rollback_stub_result_; | 75 bool can_rollback_stub_result_; |
75 int reboot_after_update_call_count_; | 76 int reboot_after_update_call_count_; |
76 int rollback_call_count_; | 77 int rollback_call_count_; |
77 int can_rollback_call_count_; | 78 int can_rollback_call_count_; |
78 }; | 79 }; |
79 | 80 |
80 } // namespace chromeos | 81 } // namespace chromeos |
81 | 82 |
82 #endif // CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ | 83 #endif // CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ |
OLD | NEW |