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

Side by Side Diff: components/arc/test/fake_arc_bridge_service.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/arc/test/fake_arc_bridge_service.h" 5 #include "components/arc/test/fake_arc_bridge_service.h"
6 6
7 namespace arc { 7 namespace arc {
8 8
9 FakeArcBridgeService::FakeArcBridgeService() = default; 9 FakeArcBridgeService::FakeArcBridgeService() = default;
10 10
(...skipping 16 matching lines...) Expand all
27 void FakeArcBridgeService::SetReady() { 27 void FakeArcBridgeService::SetReady() {
28 if (state() != State::READY) 28 if (state() != State::READY)
29 SetState(State::READY); 29 SetState(State::READY);
30 } 30 }
31 31
32 void FakeArcBridgeService::SetStopped() { 32 void FakeArcBridgeService::SetStopped() {
33 if (state() != State::STOPPED) 33 if (state() != State::STOPPED)
34 SetState(State::STOPPED); 34 SetState(State::STOPPED);
35 } 35 }
36 36
37 bool FakeArcBridgeService::HasObserver(const Observer* observer) { 37 bool FakeArcBridgeService::HasObserver(const ArcSessionObserver* observer) {
38 return observer_list().HasObserver(observer); 38 return observer_list().HasObserver(observer);
39 } 39 }
40 40
41 } // namespace arc 41 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698