Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: components/arc/test/fake_intent_helper_instance.cc

Issue 2498223002: arc: enable use_new_wrapper_types for intent_helper.mojom (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/arc/test/fake_intent_helper_instance.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 std::string& action,
12 const mojo::String& package_name, 12 const std::string& package_name,
13 const mojo::String& cls, 13 const std::string& cls,
14 const mojo::String& extras) 14 const std::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 std::string& package_name) {}
29 29
30 void FakeIntentHelperInstance::GetFileSize( 30 void FakeIntentHelperInstance::GetFileSize(
31 const mojo::String& url, 31 const std::string& url,
32 const GetFileSizeCallback& callback) {} 32 const GetFileSizeCallback& callback) {}
33 33
34 void FakeIntentHelperInstance::HandleIntent(mojom::IntentInfoPtr intent, 34 void FakeIntentHelperInstance::HandleIntent(mojom::IntentInfoPtr intent,
35 mojom::ActivityNamePtr activity) {} 35 mojom::ActivityNamePtr activity) {}
36 36
37 void FakeIntentHelperInstance::HandleUrl(const mojo::String& url, 37 void FakeIntentHelperInstance::HandleUrl(const std::string& url,
38 const mojo::String& package_name) {} 38 const std::string& package_name) {}
39 39
40 void FakeIntentHelperInstance::HandleUrlList( 40 void FakeIntentHelperInstance::HandleUrlList(
41 mojo::Array<mojom::UrlWithMimeTypePtr> urls, 41 std::vector<mojom::UrlWithMimeTypePtr> urls,
42 mojom::ActivityNamePtr activity, 42 mojom::ActivityNamePtr activity,
43 mojom::ActionType action) {} 43 mojom::ActionType action) {}
44 44
45 void FakeIntentHelperInstance::Init(mojom::IntentHelperHostPtr host_ptr) {} 45 void FakeIntentHelperInstance::Init(mojom::IntentHelperHostPtr host_ptr) {}
46 46
47 void FakeIntentHelperInstance::OpenFileToRead( 47 void FakeIntentHelperInstance::OpenFileToRead(
48 const mojo::String& url, 48 const std::string& url,
49 const OpenFileToReadCallback& callback) {} 49 const OpenFileToReadCallback& callback) {}
50 50
51 void FakeIntentHelperInstance::RequestActivityIcons( 51 void FakeIntentHelperInstance::RequestActivityIcons(
52 mojo::Array<mojom::ActivityNamePtr> activities, 52 std::vector<mojom::ActivityNamePtr> activities,
53 ::arc::mojom::ScaleFactor scale_factor, 53 ::arc::mojom::ScaleFactor scale_factor,
54 const RequestActivityIconsCallback& callback) {} 54 const RequestActivityIconsCallback& callback) {}
55 55
56 void FakeIntentHelperInstance::RequestIntentHandlerList( 56 void FakeIntentHelperInstance::RequestIntentHandlerList(
57 mojom::IntentInfoPtr intent, 57 mojom::IntentInfoPtr intent,
58 const RequestIntentHandlerListCallback& callback) {} 58 const RequestIntentHandlerListCallback& callback) {}
59 59
60 void FakeIntentHelperInstance::RequestUrlHandlerList( 60 void FakeIntentHelperInstance::RequestUrlHandlerList(
61 const mojo::String& url, 61 const std::string& url,
62 const RequestUrlHandlerListCallback& callback) {} 62 const RequestUrlHandlerListCallback& callback) {}
63 63
64 void FakeIntentHelperInstance::RequestUrlListHandlerList( 64 void FakeIntentHelperInstance::RequestUrlListHandlerList(
65 mojo::Array<mojom::UrlWithMimeTypePtr> urls, 65 std::vector<mojom::UrlWithMimeTypePtr> urls,
66 const RequestUrlListHandlerListCallback& callback) {} 66 const RequestUrlListHandlerListCallback& callback) {}
67 67
68 void FakeIntentHelperInstance::SendBroadcast(const mojo::String& action, 68 void FakeIntentHelperInstance::SendBroadcast(const std::string& action,
69 const mojo::String& package_name, 69 const std::string& package_name,
70 const mojo::String& cls, 70 const std::string& cls,
71 const mojo::String& extras) { 71 const std::string& extras) {
72 broadcasts_.emplace_back(action, package_name, cls, extras); 72 broadcasts_.emplace_back(action, package_name, cls, extras);
73 } 73 }
74 74
75 } // namespace arc 75 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/test/fake_intent_helper_instance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698