Chromium Code Reviews| Index: components/arc/test/fake_intent_helper_instance.cc |
| diff --git a/components/arc/test/fake_intent_helper_instance.cc b/components/arc/test/fake_intent_helper_instance.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5b11c969367a3bf8e6ea4f5bb04686dba9f10098 |
| --- /dev/null |
| +++ b/components/arc/test/fake_intent_helper_instance.cc |
| @@ -0,0 +1,65 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "components/arc/test/fake_intent_helper_instance.h" |
| + |
| +namespace arc { |
| + |
| +FakeIntentHelperInstance::FakeIntentHelperInstance() {} |
| + |
| +FakeIntentHelperInstance::Broadcast::Broadcast(const mojo::String& action, |
| + const mojo::String& package_name, |
| + const mojo::String& cls, |
| + const mojo::String& extras) |
| + : action(action), package_name(package_name), cls(cls), extras(extras) {} |
| + |
| +FakeIntentHelperInstance::Broadcast::Broadcast(const Broadcast& broadcast) |
| + : action(broadcast.action), |
| + package_name(broadcast.package_name), |
| + cls(broadcast.cls), |
| + extras(broadcast.extras) {} |
| + |
| +FakeIntentHelperInstance::Broadcast::~Broadcast() {} |
| + |
| +FakeIntentHelperInstance::~FakeIntentHelperInstance() {} |
| + |
| +void FakeIntentHelperInstance::AddPreferredPackage( |
| + const mojo::String& package_name) {} |
| + |
| +void FakeIntentHelperInstance::HandleUrl(const mojo::String& url, |
| + const mojo::String& package_name) {} |
| + |
| +void FakeIntentHelperInstance::HandleUrlList( |
| + mojo::Array<mojom::UrlWithMimeTypePtr> urls, |
| + mojom::ActivityNamePtr activity, |
| + mojom::ActionType action) {} |
| + |
| +void FakeIntentHelperInstance::HandleUrlListDeprecated( |
| + mojo::Array<mojom::UrlWithMimeTypePtr> urls, |
| + const mojo::String& package_name, |
| + mojom::ActionType action) {} |
| + |
| +void FakeIntentHelperInstance::Init(mojom::IntentHelperHostPtr host_ptr) {} |
| + |
| +void FakeIntentHelperInstance::RequestActivityIcons( |
| + mojo::Array<mojom::ActivityNamePtr> activities, |
| + ::arc::mojom::ScaleFactor scale_factor, |
| + const RequestActivityIconsCallback& callback) {} |
| + |
| +void FakeIntentHelperInstance::RequestUrlHandlerList( |
| + const mojo::String& url, |
| + const RequestUrlHandlerListCallback& callback) {} |
| + |
| +void FakeIntentHelperInstance::RequestUrlListHandlerList( |
| + mojo::Array<mojom::UrlWithMimeTypePtr> urls, |
| + const RequestUrlListHandlerListCallback& callback) {} |
| + |
| +void FakeIntentHelperInstance::SendBroadcast(const mojo::String& action, |
| + const mojo::String& package_name, |
| + const mojo::String& cls, |
| + const mojo::String& extras) { |
| + broadcasts_.push_back(Broadcast(action, package_name, cls, extras)); |
|
Luis Héctor Chávez
2016/09/06 16:16:25
nit: can you use
broadcasts_.emplace_back(action,
Polina Bondarenko
2016/09/06 19:38:46
Hm, Chrome codestyle checker does not allow me to
|
| +} |
| + |
| +} // namespace arc |