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

Unified Diff: chromeos/dbus/fake_update_engine_client.cc

Issue 216883004: Browsertests for improved reset options: powerwash and rollback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Const issue. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/fake_update_engine_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_update_engine_client.cc
diff --git a/chromeos/dbus/fake_update_engine_client.cc b/chromeos/dbus/fake_update_engine_client.cc
index b87b798b04a13f7073784d53a14d8d838dcf4e84..76a21492e10fbff98835bc2bf0b78899d2b26fcd 100644
--- a/chromeos/dbus/fake_update_engine_client.cc
+++ b/chromeos/dbus/fake_update_engine_client.cc
@@ -8,7 +8,10 @@ namespace chromeos {
FakeUpdateEngineClient::FakeUpdateEngineClient()
: update_check_result_(UpdateEngineClient::UPDATE_RESULT_SUCCESS),
- reboot_after_update_call_count_(0) {
+ can_rollback_stub_result_(false),
+ reboot_after_update_call_count_(0),
+ rollback_call_count_(0),
+ can_rollback_call_count_(0) {
}
FakeUpdateEngineClient::~FakeUpdateEngineClient() {
@@ -33,10 +36,13 @@ void FakeUpdateEngineClient::RequestUpdateCheck(
}
void FakeUpdateEngineClient::Rollback() {
+ rollback_call_count_++;
}
void FakeUpdateEngineClient::CanRollbackCheck(
const RollbackCheckCallback& callback) {
+ can_rollback_call_count_++;
+ callback.Run(can_rollback_stub_result_);
}
void FakeUpdateEngineClient::RebootAfterUpdate() {
« no previous file with comments | « chromeos/dbus/fake_update_engine_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698