| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_intent_helper_instance.h" | 5 #include "components/arc/test/fake_intent_helper_instance.h" |
| 6 | 6 |
| 7 namespace arc { | 7 namespace arc { |
| 8 | 8 |
| 9 FakeIntentHelperInstance::FakeIntentHelperInstance() {} | 9 FakeIntentHelperInstance::FakeIntentHelperInstance() {} |
| 10 | 10 |
| 11 FakeIntentHelperInstance::Broadcast::Broadcast(const mojo::String& action, | 11 FakeIntentHelperInstance::Broadcast::Broadcast(const mojo::String& action, |
| 12 const mojo::String& package_name, | 12 const mojo::String& package_name, |
| 13 const mojo::String& cls, | 13 const mojo::String& cls, |
| 14 const mojo::String& extras) | 14 const mojo::String& extras) |
| 15 : action(action), package_name(package_name), cls(cls), extras(extras) {} | 15 : action(action), package_name(package_name), cls(cls), extras(extras) {} |
| 16 | 16 |
| 17 FakeIntentHelperInstance::Broadcast::Broadcast(const Broadcast& broadcast) | 17 FakeIntentHelperInstance::Broadcast::Broadcast(const Broadcast& broadcast) |
| 18 : action(broadcast.action), | 18 : action(broadcast.action), |
| 19 package_name(broadcast.package_name), | 19 package_name(broadcast.package_name), |
| 20 cls(broadcast.cls), | 20 cls(broadcast.cls), |
| 21 extras(broadcast.extras) {} | 21 extras(broadcast.extras) {} |
| 22 | 22 |
| 23 FakeIntentHelperInstance::Broadcast::~Broadcast() {} | 23 FakeIntentHelperInstance::Broadcast::~Broadcast() {} |
| 24 | 24 |
| 25 FakeIntentHelperInstance::~FakeIntentHelperInstance() {} | 25 FakeIntentHelperInstance::~FakeIntentHelperInstance() {} |
| 26 | 26 |
| 27 void FakeIntentHelperInstance::AddPreferredPackage( | 27 void FakeIntentHelperInstance::AddPreferredPackage( |
| 28 const mojo::String& package_name) {} | 28 const mojo::String& package_name) {} |
| 29 | 29 |
| 30 void FakeIntentHelperInstance::GetFileSize( |
| 31 const mojo::String& url, |
| 32 const GetFileSizeCallback& callback) {} |
| 33 |
| 30 void FakeIntentHelperInstance::HandleIntent(mojom::IntentInfoPtr intent, | 34 void FakeIntentHelperInstance::HandleIntent(mojom::IntentInfoPtr intent, |
| 31 mojom::ActivityNamePtr activity) {} | 35 mojom::ActivityNamePtr activity) {} |
| 32 | 36 |
| 33 void FakeIntentHelperInstance::HandleUrl(const mojo::String& url, | 37 void FakeIntentHelperInstance::HandleUrl(const mojo::String& url, |
| 34 const mojo::String& package_name) {} | 38 const mojo::String& package_name) {} |
| 35 | 39 |
| 36 void FakeIntentHelperInstance::HandleUrlList( | 40 void FakeIntentHelperInstance::HandleUrlList( |
| 37 mojo::Array<mojom::UrlWithMimeTypePtr> urls, | 41 mojo::Array<mojom::UrlWithMimeTypePtr> urls, |
| 38 mojom::ActivityNamePtr activity, | 42 mojom::ActivityNamePtr activity, |
| 39 mojom::ActionType action) {} | 43 mojom::ActionType action) {} |
| 40 | 44 |
| 41 void FakeIntentHelperInstance::Init(mojom::IntentHelperHostPtr host_ptr) {} | 45 void FakeIntentHelperInstance::Init(mojom::IntentHelperHostPtr host_ptr) {} |
| 42 | 46 |
| 47 void FakeIntentHelperInstance::OpenFileToRead( |
| 48 const mojo::String& url, |
| 49 const OpenFileToReadCallback& callback) {} |
| 50 |
| 43 void FakeIntentHelperInstance::RequestActivityIcons( | 51 void FakeIntentHelperInstance::RequestActivityIcons( |
| 44 mojo::Array<mojom::ActivityNamePtr> activities, | 52 mojo::Array<mojom::ActivityNamePtr> activities, |
| 45 ::arc::mojom::ScaleFactor scale_factor, | 53 ::arc::mojom::ScaleFactor scale_factor, |
| 46 const RequestActivityIconsCallback& callback) {} | 54 const RequestActivityIconsCallback& callback) {} |
| 47 | 55 |
| 48 void FakeIntentHelperInstance::RequestIntentHandlerList( | 56 void FakeIntentHelperInstance::RequestIntentHandlerList( |
| 49 mojom::IntentInfoPtr intent, | 57 mojom::IntentInfoPtr intent, |
| 50 const RequestIntentHandlerListCallback& callback) {} | 58 const RequestIntentHandlerListCallback& callback) {} |
| 51 | 59 |
| 52 void FakeIntentHelperInstance::RequestUrlHandlerList( | 60 void FakeIntentHelperInstance::RequestUrlHandlerList( |
| 53 const mojo::String& url, | 61 const mojo::String& url, |
| 54 const RequestUrlHandlerListCallback& callback) {} | 62 const RequestUrlHandlerListCallback& callback) {} |
| 55 | 63 |
| 56 void FakeIntentHelperInstance::RequestUrlListHandlerList( | 64 void FakeIntentHelperInstance::RequestUrlListHandlerList( |
| 57 mojo::Array<mojom::UrlWithMimeTypePtr> urls, | 65 mojo::Array<mojom::UrlWithMimeTypePtr> urls, |
| 58 const RequestUrlListHandlerListCallback& callback) {} | 66 const RequestUrlListHandlerListCallback& callback) {} |
| 59 | 67 |
| 60 void FakeIntentHelperInstance::SendBroadcast(const mojo::String& action, | 68 void FakeIntentHelperInstance::SendBroadcast(const mojo::String& action, |
| 61 const mojo::String& package_name, | 69 const mojo::String& package_name, |
| 62 const mojo::String& cls, | 70 const mojo::String& cls, |
| 63 const mojo::String& extras) { | 71 const mojo::String& extras) { |
| 64 broadcasts_.emplace_back(action, package_name, cls, extras); | 72 broadcasts_.emplace_back(action, package_name, cls, extras); |
| 65 } | 73 } |
| 66 | 74 |
| 67 } // namespace arc | 75 } // namespace arc |
| OLD | NEW |