Chromium Code Reviews| 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 #include "chromeos/dbus/fake_update_engine_client.h" | 5 #include "chromeos/dbus/fake_update_engine_client.h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 | 8 |
| 9 FakeUpdateEngineClient::FakeUpdateEngineClient() | 9 FakeUpdateEngineClient::FakeUpdateEngineClient() |
| 10 : update_check_result_(UpdateEngineClient::UPDATE_RESULT_SUCCESS), | 10 : update_check_result_(UpdateEngineClient::UPDATE_RESULT_SUCCESS), |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 } | 68 } |
| 69 | 69 |
| 70 void FakeUpdateEngineClient::SetChannel(const std::string& target_channel, | 70 void FakeUpdateEngineClient::SetChannel(const std::string& target_channel, |
| 71 bool is_powerwash_allowed) { | 71 bool is_powerwash_allowed) { |
| 72 } | 72 } |
| 73 | 73 |
| 74 void FakeUpdateEngineClient::GetChannel(bool get_current_channel, | 74 void FakeUpdateEngineClient::GetChannel(bool get_current_channel, |
| 75 const GetChannelCallback& callback) { | 75 const GetChannelCallback& callback) { |
| 76 } | 76 } |
| 77 | 77 |
| 78 void FakeUpdateEngineClient::GetEolStatus( | |
| 79 const GetEolStatusCallback& callback) {} | |
|
stevenjb
2016/06/18 00:52:58
This should trigger its callback with a fake statu
xiaoyinh(OOO Sep 11-29)
2016/06/18 02:09:39
Will do it in next CL. Thanks!
| |
| 80 | |
| 78 void FakeUpdateEngineClient::set_default_status( | 81 void FakeUpdateEngineClient::set_default_status( |
| 79 const UpdateEngineClient::Status& status) { | 82 const UpdateEngineClient::Status& status) { |
| 80 default_status_ = status; | 83 default_status_ = status; |
| 81 } | 84 } |
| 82 | 85 |
| 83 void FakeUpdateEngineClient::set_update_check_result( | 86 void FakeUpdateEngineClient::set_update_check_result( |
| 84 const UpdateEngineClient::UpdateCheckResult& result) { | 87 const UpdateEngineClient::UpdateCheckResult& result) { |
| 85 update_check_result_ = result; | 88 update_check_result_ = result; |
| 86 } | 89 } |
| 87 | 90 |
| 88 } // namespace chromeos | 91 } // namespace chromeos |
| OLD | NEW |