| 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); | 16 host_ptr_->OnInstanceBootPhase(INSTANCE_BOOT_PHASE_BRIDGE_READY); |
| 17 host_ptr_->OnInstanceBootPhase(INSTANCE_BOOT_PHASE_BOOT_COMPLETED); | 17 host_ptr_->OnInstanceBootPhase(INSTANCE_BOOT_PHASE_BOOT_COMPLETED); |
| 18 } | 18 } |
| 19 | 19 |
| 20 void FakeArcBridgeInstance::RegisterInputDevice(const mojo::String& name, | 20 void FakeArcBridgeInstance::RegisterInputDevice(const mojo::String& name, |
| 21 const mojo::String& device_type, | 21 const mojo::String& device_type, |
| 22 mojo::ScopedHandle fd) {} | 22 mojo::ScopedHandle fd) {} |
| 23 | 23 |
| 24 void FakeArcBridgeInstance::SendNotificationEventToAndroid( | 24 void FakeArcBridgeInstance::SendNotificationEventToAndroid( |
| 25 const mojo::String& key, | 25 const mojo::String& key, |
| 26 ArcNotificationEvent event) {} | 26 ArcNotificationEvent event) {} |
| 27 | 27 |
| 28 void FakeArcBridgeInstance::SendClipboardContentToAndroid( |
| 29 const mojo::String& text) {} |
| 30 |
| 28 void FakeArcBridgeInstance::RefreshAppList() {} | 31 void FakeArcBridgeInstance::RefreshAppList() {} |
| 29 | 32 |
| 30 void FakeArcBridgeInstance::LaunchApp(const mojo::String& package, | 33 void FakeArcBridgeInstance::LaunchApp(const mojo::String& package, |
| 31 const mojo::String& activity) {} | 34 const mojo::String& activity) {} |
| 32 | 35 |
| 33 void FakeArcBridgeInstance::RequestAppIcon(const mojo::String& package, | 36 void FakeArcBridgeInstance::RequestAppIcon(const mojo::String& package, |
| 34 const mojo::String& activity, | 37 const mojo::String& activity, |
| 35 ScaleFactor scale_factor) {} | 38 ScaleFactor scale_factor) {} |
| 36 | 39 |
| 37 void FakeArcBridgeInstance::Bind( | 40 void FakeArcBridgeInstance::Bind( |
| 38 mojo::InterfaceRequest<ArcBridgeInstance> interface_request) { | 41 mojo::InterfaceRequest<ArcBridgeInstance> interface_request) { |
| 39 binding_.Bind(std::move(interface_request)); | 42 binding_.Bind(std::move(interface_request)); |
| 40 } | 43 } |
| 41 | 44 |
| 42 } // namespace arc | 45 } // namespace arc |
| OLD | NEW |