Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Side by Side Diff: chromeos/dbus/fake_update_engine_client.cc

Issue 2694923005: Appropriate handling for Cellular First devices. (Closed)
Patch Set: now with tests Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698