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

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

Issue 2425753002: Rename ArcBridgeBootstrap to ArcSession. (Closed)
Patch Set: Address comment. Created 4 years, 2 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/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_bridge_bootstrap.cc b/components/arc/test/fake_arc_session.cc
similarity index 62%
rename from components/arc/test/fake_arc_bridge_bootstrap.cc
rename to components/arc/test/fake_arc_session.cc
index 28b04a02fe878fa40991528f7d2ae78a389983a9..486068e7ebe633ebe3ebf909657ab74b70e40c34 100644
--- a/components/arc/test/fake_arc_bridge_bootstrap.cc
+++ b/components/arc/test/fake_arc_session.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/arc/test/fake_arc_bridge_bootstrap.h"
+#include "components/arc/test/fake_arc_session.h"
#include <memory>
@@ -11,11 +11,11 @@
namespace arc {
-FakeArcBridgeBootstrap::FakeArcBridgeBootstrap() = default;
+FakeArcSession::FakeArcSession() = default;
-FakeArcBridgeBootstrap::~FakeArcBridgeBootstrap() = default;
+FakeArcSession::~FakeArcSession() = default;
-void FakeArcBridgeBootstrap::Start() {
+void FakeArcSession::Start() {
if (boot_failure_emulation_enabled_) {
for (auto& observer : observer_list_)
observer.OnStopped(boot_failure_reason_);
@@ -25,17 +25,16 @@ void FakeArcBridgeBootstrap::Start() {
}
}
-void FakeArcBridgeBootstrap::Stop() {
+void FakeArcSession::Stop() {
StopWithReason(ArcBridgeService::StopReason::SHUTDOWN);
}
-void FakeArcBridgeBootstrap::StopWithReason(
- ArcBridgeService::StopReason reason) {
+void FakeArcSession::StopWithReason(ArcBridgeService::StopReason reason) {
for (auto& observer : observer_list_)
observer.OnStopped(reason);
}
-void FakeArcBridgeBootstrap::EnableBootFailureEmulation(
+void FakeArcSession::EnableBootFailureEmulation(
ArcBridgeService::StopReason reason) {
DCHECK(!boot_failure_emulation_enabled_);
DCHECK(!boot_suspended_);
@@ -44,7 +43,7 @@ void FakeArcBridgeBootstrap::EnableBootFailureEmulation(
boot_failure_reason_ = reason;
}
-void FakeArcBridgeBootstrap::SuspendBoot() {
+void FakeArcSession::SuspendBoot() {
DCHECK(!boot_failure_emulation_enabled_);
DCHECK(!boot_suspended_);
@@ -52,8 +51,8 @@ void FakeArcBridgeBootstrap::SuspendBoot() {
}
// static
-std::unique_ptr<ArcBridgeBootstrap> FakeArcBridgeBootstrap::Create() {
- return base::MakeUnique<FakeArcBridgeBootstrap>();
+std::unique_ptr<ArcSession> FakeArcSession::Create() {
+ return base::MakeUnique<FakeArcSession>();
}
} // namespace arc
« 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