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

Unified Diff: chromeos/dbus/fake_update_engine_client.h

Issue 263833016: Tests covering additional screens of reset-Rollback option added. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Function added for fake_update_engine_client. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/reset_browsertest.cc ('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 146db8b6c8d9e95aa93b94352906cdf7171f2146..91384deef996e071c67ef3a6bedeb5c83452c7dd 100644
--- a/chromeos/dbus/fake_update_engine_client.h
+++ b/chromeos/dbus/fake_update_engine_client.h
@@ -44,6 +44,10 @@ class FakeUpdateEngineClient : public UpdateEngineClient {
status_queue_.push(status);
}
+ // Sends status change notification.
+ void NotifyObserversThatStatusChanged(
+ const UpdateEngineClient::Status& status);
+
// Sets the default UpdateEngineClient::Status. GetLastStatus() returns the
// value set here if |status_queue_| is empty.
void set_default_status(const UpdateEngineClient::Status& status);
@@ -68,6 +72,7 @@ class FakeUpdateEngineClient : public UpdateEngineClient {
int can_rollback_call_count() const { return can_rollback_call_count_; }
private:
+ ObserverList<Observer> observers_;
std::queue<UpdateEngineClient::Status> status_queue_;
UpdateEngineClient::Status default_status_;
UpdateEngineClient::UpdateCheckResult update_check_result_;
« no previous file with comments | « chrome/browser/chromeos/login/reset_browsertest.cc ('k') | chromeos/dbus/fake_update_engine_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698