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

Side by Side Diff: components/arc/test/fake_arc_bridge_instance.cc

Issue 1523643002: arc-bridge: Move most methods to Mojo interfaces (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Rebased to ToT Created 5 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_instance.h" 5 #include "components/arc/test/fake_arc_bridge_instance.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 namespace arc { 9 namespace arc {
10 10
11 FakeArcBridgeInstance::FakeArcBridgeInstance() : binding_(this) {} 11 FakeArcBridgeInstance::FakeArcBridgeInstance() : binding_(this) {}
12 FakeArcBridgeInstance::~FakeArcBridgeInstance() {} 12 FakeArcBridgeInstance::~FakeArcBridgeInstance() {}
13 13
14 void FakeArcBridgeInstance::Init(ArcBridgeHostPtr host) { 14 void FakeArcBridgeInstance::Init(ArcBridgeHostPtr host) {
15 host_ptr_ = std::move(host); 15 host_ptr_ = std::move(host);
16 host_ptr_->OnInstanceBootPhase(INSTANCE_BOOT_PHASE_BRIDGE_READY);
17 host_ptr_->OnInstanceBootPhase(INSTANCE_BOOT_PHASE_BOOT_COMPLETED);
18 } 16 }
19 17
20 void FakeArcBridgeInstance::RegisterInputDevice(const mojo::String& name,
21 const mojo::String& device_type,
22 mojo::ScopedHandle fd) {}
23
24 void FakeArcBridgeInstance::SendNotificationEventToAndroid(
25 const mojo::String& key,
26 ArcNotificationEvent event) {}
27
28 void FakeArcBridgeInstance::RefreshAppList() {}
29
30 void FakeArcBridgeInstance::LaunchApp(const mojo::String& package,
31 const mojo::String& activity) {}
32
33 void FakeArcBridgeInstance::RequestAppIcon(const mojo::String& package,
34 const mojo::String& activity,
35 ScaleFactor scale_factor) {}
36 void FakeArcBridgeInstance::SendBroadcast(const mojo::String& action,
37 const mojo::String& package,
38 const mojo::String& clazz,
39 const mojo::String& extras) {}
40
41 void FakeArcBridgeInstance::RequestProcessList() {}
42
43 void FakeArcBridgeInstance::Bind( 18 void FakeArcBridgeInstance::Bind(
44 mojo::InterfaceRequest<ArcBridgeInstance> interface_request) { 19 mojo::InterfaceRequest<ArcBridgeInstance> interface_request) {
45 binding_.Bind(std::move(interface_request)); 20 binding_.Bind(std::move(interface_request));
46 } 21 }
47 22
48 } // namespace arc 23 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/test/fake_arc_bridge_instance.h ('k') | components/arc/test/fake_arc_bridge_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698