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 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 FROM_HERE, | 86 FROM_HERE, |
| 87 base::Bind(callback, update_engine::EndOfLifeStatus::kSupported)); | 87 base::Bind(callback, update_engine::EndOfLifeStatus::kSupported)); |
| 88 } | 88 } |
| 89 | 89 |
| 90 void FakeUpdateEngineClient::SetUpdateOverCellularPermission( | 90 void FakeUpdateEngineClient::SetUpdateOverCellularPermission( |
| 91 bool allowed, | 91 bool allowed, |
| 92 const base::Closure& callback) { | 92 const base::Closure& callback) { |
| 93 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, callback); | 93 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, callback); |
| 94 } | 94 } |
| 95 | 95 |
| 96 void FakeUpdateEngineClient::SetUpdateOverCellularTarget( | |
| 97 const std::string& target_version, | |
| 98 int64_t target_size, | |
| 99 const SetTargetCallback& callback) { | |
| 100 // Do nothing. | |
|
Daniel Erat
2017/05/12 13:37:03
nit: delete this comment. "{}" makes it clear you'
weidongg
2017/05/12 16:33:16
Done.
| |
| 101 } | |
| 102 | |
| 96 void FakeUpdateEngineClient::set_default_status( | 103 void FakeUpdateEngineClient::set_default_status( |
| 97 const UpdateEngineClient::Status& status) { | 104 const UpdateEngineClient::Status& status) { |
| 98 default_status_ = status; | 105 default_status_ = status; |
| 99 } | 106 } |
| 100 | 107 |
| 101 void FakeUpdateEngineClient::set_update_check_result( | 108 void FakeUpdateEngineClient::set_update_check_result( |
| 102 const UpdateEngineClient::UpdateCheckResult& result) { | 109 const UpdateEngineClient::UpdateCheckResult& result) { |
| 103 update_check_result_ = result; | 110 update_check_result_ = result; |
| 104 } | 111 } |
| 105 | 112 |
| 106 } // namespace chromeos | 113 } // namespace chromeos |
| OLD | NEW |