| OLD | NEW |
| 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); |
| 16 } | 18 } |
| 17 | 19 |
| 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 |
| 18 void FakeArcBridgeInstance::Bind( | 43 void FakeArcBridgeInstance::Bind( |
| 19 mojo::InterfaceRequest<ArcBridgeInstance> interface_request) { | 44 mojo::InterfaceRequest<ArcBridgeInstance> interface_request) { |
| 20 binding_.Bind(std::move(interface_request)); | 45 binding_.Bind(std::move(interface_request)); |
| 21 } | 46 } |
| 22 | 47 |
| 23 } // namespace arc | 48 } // namespace arc |
| OLD | NEW |