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

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

Issue 2881473002: Make update over cellular an option for user (Closed)
Patch Set: remove DEPS as it is already update to date Created 3 years, 7 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
« no previous file with comments | « chromeos/dbus/fake_update_engine_client.h ('k') | chromeos/dbus/update_engine_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SetUpdateOverCellularTargetCallback& callback) {}
100
96 void FakeUpdateEngineClient::set_default_status( 101 void FakeUpdateEngineClient::set_default_status(
97 const UpdateEngineClient::Status& status) { 102 const UpdateEngineClient::Status& status) {
98 default_status_ = status; 103 default_status_ = status;
99 } 104 }
100 105
101 void FakeUpdateEngineClient::set_update_check_result( 106 void FakeUpdateEngineClient::set_update_check_result(
102 const UpdateEngineClient::UpdateCheckResult& result) { 107 const UpdateEngineClient::UpdateCheckResult& result) {
103 update_check_result_ = result; 108 update_check_result_ = result;
104 } 109 }
105 110
106 } // namespace chromeos 111 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_update_engine_client.h ('k') | chromeos/dbus/update_engine_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698