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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 return request_update_check_call_count_; | 70 return request_update_check_call_count_; |
71 } | 71 } |
72 | 72 |
73 // Returns how many times Rollback() is called. | 73 // Returns how many times Rollback() is called. |
74 int rollback_call_count() const { return rollback_call_count_; } | 74 int rollback_call_count() const { return rollback_call_count_; } |
75 | 75 |
76 // Returns how many times Rollback() is called. | 76 // Returns how many times Rollback() is called. |
77 int can_rollback_call_count() const { return can_rollback_call_count_; } | 77 int can_rollback_call_count() const { return can_rollback_call_count_; } |
78 | 78 |
79 private: | 79 private: |
80 void OnGetChannel(const GetChannelCallback& callback) { callback.Run(""); } | |
xiyuan
2016/06/21 15:18:14
Don't inline this. Put the body in cc file.
xiaoyinh(OOO Sep 11-29)
2016/06/22 18:25:40
Done.
| |
81 | |
82 void OnGetEolStatus(const GetEolStatusCallback& callback) { | |
xiyuan
2016/06/21 15:18:14
same here.
xiaoyinh(OOO Sep 11-29)
2016/06/22 18:25:40
Done.
| |
83 callback.Run(update_engine::EndOfLifeStatus::kSupported); | |
84 } | |
85 | |
80 base::ObserverList<Observer> observers_; | 86 base::ObserverList<Observer> observers_; |
81 std::queue<UpdateEngineClient::Status> status_queue_; | 87 std::queue<UpdateEngineClient::Status> status_queue_; |
82 UpdateEngineClient::Status default_status_; | 88 UpdateEngineClient::Status default_status_; |
83 UpdateEngineClient::UpdateCheckResult update_check_result_; | 89 UpdateEngineClient::UpdateCheckResult update_check_result_; |
84 bool can_rollback_stub_result_; | 90 bool can_rollback_stub_result_; |
85 int reboot_after_update_call_count_; | 91 int reboot_after_update_call_count_; |
86 int request_update_check_call_count_; | 92 int request_update_check_call_count_; |
87 int rollback_call_count_; | 93 int rollback_call_count_; |
88 int can_rollback_call_count_; | 94 int can_rollback_call_count_; |
95 | |
96 base::WeakPtrFactory<FakeUpdateEngineClient> weak_ptr_factory_; | |
89 }; | 97 }; |
90 | 98 |
91 } // namespace chromeos | 99 } // namespace chromeos |
92 | 100 |
93 #endif // CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ | 101 #endif // CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ |
OLD | NEW |