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

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

Issue 2574013003: Refactor ArcSessionRunner part 1. (Closed)
Patch Set: rebase to the split CL 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
Index: components/arc/test/fake_arc_bridge_service.cc
diff --git a/components/arc/test/fake_arc_bridge_service.cc b/components/arc/test/fake_arc_bridge_service.cc
deleted file mode 100644
index 5ed87068513bdfd7abd428bc7d04d2b7271cf131..0000000000000000000000000000000000000000
--- a/components/arc/test/fake_arc_bridge_service.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// 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_service.h"
-
-namespace arc {
-
-FakeArcBridgeService::FakeArcBridgeService() = default;
-
-FakeArcBridgeService::~FakeArcBridgeService() {
- SetStopped();
-}
-
-void FakeArcBridgeService::RequestStart() {
- SetReady();
-}
-
-void FakeArcBridgeService::RequestStop() {
- SetStopped();
-}
-
-void FakeArcBridgeService::OnShutdown() {
- SetStopped();
-}
-
-void FakeArcBridgeService::SetReady() {
- if (state() != State::RUNNING)
- SetState(State::RUNNING);
-}
-
-void FakeArcBridgeService::SetStopped() {
- if (state() != State::STOPPED)
- SetState(State::STOPPED);
-}
-
-} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698