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

Unified Diff: chromeos/dbus/fake_update_engine_client.h

Issue 578293002: Fixed channel switch when user decides to switch to another channel in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EnsureCanUpdate() is restored back. Test is modified to mimic real environment. Created 6 years, 3 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 | « chrome/chrome_tests_unit.gypi ('k') | chromeos/dbus/fake_update_engine_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_update_engine_client.h
diff --git a/chromeos/dbus/fake_update_engine_client.h b/chromeos/dbus/fake_update_engine_client.h
index 91384deef996e071c67ef3a6bedeb5c83452c7dd..b2ddc9487b248edece48b1e75da5198e049fb952 100644
--- a/chromeos/dbus/fake_update_engine_client.h
+++ b/chromeos/dbus/fake_update_engine_client.h
@@ -65,6 +65,11 @@ class FakeUpdateEngineClient : public UpdateEngineClient {
return reboot_after_update_call_count_;
}
+ // Returns how many times RequestUpdateCheck() is called.
+ int request_update_check_call_count() const {
+ return request_update_check_call_count_;
+ }
+
// Returns how many times Rollback() is called.
int rollback_call_count() const { return rollback_call_count_; }
@@ -78,6 +83,7 @@ class FakeUpdateEngineClient : public UpdateEngineClient {
UpdateEngineClient::UpdateCheckResult update_check_result_;
bool can_rollback_stub_result_;
int reboot_after_update_call_count_;
+ int request_update_check_call_count_;
int rollback_call_count_;
int can_rollback_call_count_;
};
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chromeos/dbus/fake_update_engine_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698