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

Unified Diff: chromeos/dbus/fake_update_engine_client.h

Issue 216883004: Browsertests for improved reset options: powerwash and rollback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Required fixes added. 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
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 8768e31c360c14572a598e6d522687802246b34d..e36cd28cae7267d5249ade888dd84cf8f4db5046 100644
--- a/chromeos/dbus/fake_update_engine_client.h
+++ b/chromeos/dbus/fake_update_engine_client.h
@@ -52,16 +52,27 @@ class FakeUpdateEngineClient : public UpdateEngineClient {
void set_update_check_result(
const UpdateEngineClient::UpdateCheckResult& result);
+ void set_can_callback_check_result(bool result);
oshima 2014/03/31 20:41:54 you may inline this.
merkulova 2014/04/01 11:43:20 Done.
+
// Returns how many times RebootAfterUpdate() is called.
- int reboot_after_update_call_count() {
- return reboot_after_update_call_count_;
+ int reboot_after_update_call_count() {return reboot_after_update_call_count_;}
oshima 2014/03/31 20:41:54 const space betten { and return
merkulova 2014/04/01 11:43:20 Done.
+
+ // Returns how many times Rollback() is called.
+ int rollback_call_count() {
oshima 2014/03/31 20:41:54 const
merkulova 2014/04/01 11:43:20 Done.
+ return rollback_call_count_;
}
+ // Returns how many times Rollback() is called.
+ int can_rollback_call_count() {return can_rollback_call_count_;}
oshima 2014/03/31 20:41:54 const
merkulova 2014/04/01 11:43:20 Done.
+
private:
std::queue<UpdateEngineClient::Status> status_queue_;
UpdateEngineClient::Status default_status_;
UpdateEngineClient::UpdateCheckResult update_check_result_;
+ bool can_rollback_stub_result;
oshima 2014/03/31 20:41:54 private member variable should end with "_"
merkulova 2014/04/01 11:43:20 Done.
int reboot_after_update_call_count_;
+ int rollback_call_count_;
+ int can_rollback_call_count_;
};
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698