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

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

Issue 2060623002: Implementation of Device End of Life Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase the branch Created 4 years, 6 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698