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

Unified Diff: components/arc/test/fake_arc_session.h

Issue 2720303002: Do nothing on OnSessionStopped if ARC is being restarted. (Closed)
Patch Set: Address comments. Created 3 years, 10 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 | « components/arc/arc_stop_reason.cc ('k') | components/arc/test/fake_arc_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/test/fake_arc_session.h
diff --git a/components/arc/test/fake_arc_session.h b/components/arc/test/fake_arc_session.h
index 9ddd3e292f6bb4dec09e5440db8a163b00a7f00a..132c86a47122f0d8afe9bd7159a51c4605dc86a6 100644
--- a/components/arc/test/fake_arc_session.h
+++ b/components/arc/test/fake_arc_session.h
@@ -9,7 +9,7 @@
#include "base/macros.h"
#include "components/arc/arc_session.h"
-#include "components/arc/arc_session_observer.h"
+#include "components/arc/arc_stop_reason.h"
namespace arc {
@@ -25,13 +25,13 @@ class FakeArcSession : public ArcSession {
void OnShutdown() override;
// To emulate unexpected stop, such as crash.
- void StopWithReason(ArcSessionObserver::StopReason reason);
+ void StopWithReason(ArcStopReason reason);
// The following control Start() behavior for testing various situations.
// Enables/disables boot failure emulation, in which OnStopped(reason) will
// be called when Start() is called.
- void EnableBootFailureEmulation(ArcSessionObserver::StopReason reason);
+ void EnableBootFailureEmulation(ArcStopReason reason);
// Emulate Start() is suspended at some phase, before OnReady() is invoked.
void SuspendBoot();
@@ -42,7 +42,7 @@ class FakeArcSession : public ArcSession {
private:
bool boot_failure_emulation_enabled_ = false;
- ArcSessionObserver::StopReason boot_failure_reason_;
+ ArcStopReason boot_failure_reason_;
bool boot_suspended_ = false;
« no previous file with comments | « components/arc/arc_stop_reason.cc ('k') | components/arc/test/fake_arc_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698