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

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

Issue 2567083002: Migrate ArcBridgeService::Observer and ArcSession::Observer. (Closed)
Patch Set: rebase Created 4 years 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_session_observer.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 fb56229c3daea8bdd119c6aa3683ad49b664677b..9ddd3e292f6bb4dec09e5440db8a163b00a7f00a 100644
--- a/components/arc/test/fake_arc_session.h
+++ b/components/arc/test/fake_arc_session.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "components/arc/arc_session.h"
+#include "components/arc/arc_session_observer.h"
namespace arc {
@@ -24,13 +25,13 @@ class FakeArcSession : public ArcSession {
void OnShutdown() override;
// To emulate unexpected stop, such as crash.
- void StopWithReason(ArcBridgeService::StopReason reason);
+ void StopWithReason(ArcSessionObserver::StopReason 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(ArcBridgeService::StopReason reason);
+ void EnableBootFailureEmulation(ArcSessionObserver::StopReason reason);
// Emulate Start() is suspended at some phase, before OnReady() is invoked.
void SuspendBoot();
@@ -41,7 +42,7 @@ class FakeArcSession : public ArcSession {
private:
bool boot_failure_emulation_enabled_ = false;
- ArcBridgeService::StopReason boot_failure_reason_;
+ ArcSessionObserver::StopReason boot_failure_reason_;
bool boot_suspended_ = false;
« no previous file with comments | « components/arc/arc_session_observer.cc ('k') | components/arc/test/fake_arc_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698