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

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

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/test/fake_arc_session.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/test/fake_arc_session.cc
diff --git a/components/arc/test/fake_arc_session.cc b/components/arc/test/fake_arc_session.cc
index 5ebc1e04a0214e260cf8287c51f339647aebdf23..493fe870f0815f9acd371e723dc8b578a2ad1b0c 100644
--- a/components/arc/test/fake_arc_session.cc
+++ b/components/arc/test/fake_arc_session.cc
@@ -18,28 +18,28 @@ FakeArcSession::~FakeArcSession() = default;
void FakeArcSession::Start() {
if (boot_failure_emulation_enabled_) {
for (auto& observer : observer_list_)
- observer.OnStopped(boot_failure_reason_);
+ observer.OnSessionStopped(boot_failure_reason_);
} else if (!boot_suspended_) {
for (auto& observer : observer_list_)
- observer.OnReady();
+ observer.OnSessionReady();
}
}
void FakeArcSession::Stop() {
- StopWithReason(ArcBridgeService::StopReason::SHUTDOWN);
+ StopWithReason(ArcSessionObserver::StopReason::SHUTDOWN);
}
void FakeArcSession::OnShutdown() {
- StopWithReason(ArcBridgeService::StopReason::SHUTDOWN);
+ StopWithReason(ArcSessionObserver::StopReason::SHUTDOWN);
}
-void FakeArcSession::StopWithReason(ArcBridgeService::StopReason reason) {
+void FakeArcSession::StopWithReason(ArcSessionObserver::StopReason reason) {
for (auto& observer : observer_list_)
- observer.OnStopped(reason);
+ observer.OnSessionStopped(reason);
}
void FakeArcSession::EnableBootFailureEmulation(
- ArcBridgeService::StopReason reason) {
+ ArcSessionObserver::StopReason reason) {
DCHECK(!boot_failure_emulation_enabled_);
DCHECK(!boot_suspended_);
« no previous file with comments | « components/arc/test/fake_arc_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698