Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "components/arc/test/fake_intent_helper_instance.h" | |
| 6 | |
| 7 namespace arc { | |
| 8 | |
| 9 FakeIntentHelperInstance::FakeIntentHelperInstance() {} | |
| 10 | |
| 11 FakeIntentHelperInstance::Broadcast::Broadcast(const mojo::String& action, | |
| 12 const mojo::String& package_name, | |
| 13 const mojo::String& cls, | |
| 14 const mojo::String& extras) | |
| 15 : action(action), package_name(package_name), cls(cls), extras(extras) {} | |
| 16 | |
| 17 FakeIntentHelperInstance::Broadcast::Broadcast(const Broadcast& broadcast) | |
| 18 : action(broadcast.action), | |
| 19 package_name(broadcast.package_name), | |
| 20 cls(broadcast.cls), | |
| 21 extras(broadcast.extras) {} | |
| 22 | |
| 23 FakeIntentHelperInstance::Broadcast::~Broadcast() {} | |
| 24 | |
| 25 FakeIntentHelperInstance::~FakeIntentHelperInstance() {} | |
| 26 | |
| 27 void FakeIntentHelperInstance::AddPreferredPackage( | |
| 28 const mojo::String& package_name) {} | |
| 29 | |
| 30 void FakeIntentHelperInstance::HandleUrl(const mojo::String& url, | |
| 31 const mojo::String& package_name) {} | |
| 32 | |
| 33 void FakeIntentHelperInstance::HandleUrlList( | |
| 34 mojo::Array<mojom::UrlWithMimeTypePtr> urls, | |
| 35 mojom::ActivityNamePtr activity, | |
| 36 mojom::ActionType action) {} | |
| 37 | |
| 38 void FakeIntentHelperInstance::HandleUrlListDeprecated( | |
| 39 mojo::Array<mojom::UrlWithMimeTypePtr> urls, | |
| 40 const mojo::String& package_name, | |
| 41 mojom::ActionType action) {} | |
| 42 | |
| 43 void FakeIntentHelperInstance::Init(mojom::IntentHelperHostPtr host_ptr) {} | |
| 44 | |
| 45 void FakeIntentHelperInstance::RequestActivityIcons( | |
| 46 mojo::Array<mojom::ActivityNamePtr> activities, | |
| 47 ::arc::mojom::ScaleFactor scale_factor, | |
| 48 const RequestActivityIconsCallback& callback) {} | |
| 49 | |
| 50 void FakeIntentHelperInstance::RequestUrlHandlerList( | |
| 51 const mojo::String& url, | |
| 52 const RequestUrlHandlerListCallback& callback) {} | |
| 53 | |
| 54 void FakeIntentHelperInstance::RequestUrlListHandlerList( | |
| 55 mojo::Array<mojom::UrlWithMimeTypePtr> urls, | |
| 56 const RequestUrlListHandlerListCallback& callback) {} | |
| 57 | |
| 58 void FakeIntentHelperInstance::SendBroadcast(const mojo::String& action, | |
| 59 const mojo::String& package_name, | |
| 60 const mojo::String& cls, | |
| 61 const mojo::String& extras) { | |
| 62 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
| |
| 63 } | |
| 64 | |
| 65 } // namespace arc | |
| OLD | NEW |