| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 FROM_HERE, base::Bind(callback, std::string())); | 80 FROM_HERE, base::Bind(callback, std::string())); |
| 81 } | 81 } |
| 82 | 82 |
| 83 void FakeUpdateEngineClient::GetEolStatus( | 83 void FakeUpdateEngineClient::GetEolStatus( |
| 84 const GetEolStatusCallback& callback) { | 84 const GetEolStatusCallback& callback) { |
| 85 base::ThreadTaskRunnerHandle::Get()->PostTask( | 85 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 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( |
| 91 bool allowed, |
| 92 const base::Closure& callback) { |
| 93 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, callback); |
| 94 } |
| 95 |
| 90 void FakeUpdateEngineClient::set_default_status( | 96 void FakeUpdateEngineClient::set_default_status( |
| 91 const UpdateEngineClient::Status& status) { | 97 const UpdateEngineClient::Status& status) { |
| 92 default_status_ = status; | 98 default_status_ = status; |
| 93 } | 99 } |
| 94 | 100 |
| 95 void FakeUpdateEngineClient::set_update_check_result( | 101 void FakeUpdateEngineClient::set_update_check_result( |
| 96 const UpdateEngineClient::UpdateCheckResult& result) { | 102 const UpdateEngineClient::UpdateCheckResult& result) { |
| 97 update_check_result_ = result; | 103 update_check_result_ = result; |
| 98 } | 104 } |
| 99 | 105 |
| 100 } // namespace chromeos | 106 } // namespace chromeos |
| OLD | NEW |