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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/arc/test/fake_intent_helper_instance.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 1db18fdbabcc58cf9f0e5bea3f4bdf4fa5d85b35..890c8508e4aedcb95d1f17e3c23b79b0e2360844 100644
--- a/components/arc/test/fake_intent_helper_instance.cc
+++ b/components/arc/test/fake_intent_helper_instance.cc
@@ -8,10 +8,10 @@ namespace arc {
FakeIntentHelperInstance::FakeIntentHelperInstance() {}
-FakeIntentHelperInstance::Broadcast::Broadcast(const mojo::String& action,
- const mojo::String& package_name,
- const mojo::String& cls,
- const mojo::String& extras)
+FakeIntentHelperInstance::Broadcast::Broadcast(const std::string& action,
+ const std::string& package_name,
+ const std::string& cls,
+ const std::string& extras)
: action(action), package_name(package_name), cls(cls), extras(extras) {}
FakeIntentHelperInstance::Broadcast::Broadcast(const Broadcast& broadcast)
@@ -25,31 +25,31 @@ FakeIntentHelperInstance::Broadcast::~Broadcast() {}
FakeIntentHelperInstance::~FakeIntentHelperInstance() {}
void FakeIntentHelperInstance::AddPreferredPackage(
- const mojo::String& package_name) {}
+ const std::string& package_name) {}
void FakeIntentHelperInstance::GetFileSize(
- const mojo::String& url,
+ const std::string& url,
const GetFileSizeCallback& callback) {}
void FakeIntentHelperInstance::HandleIntent(mojom::IntentInfoPtr intent,
mojom::ActivityNamePtr activity) {}
-void FakeIntentHelperInstance::HandleUrl(const mojo::String& url,
- const mojo::String& package_name) {}
+void FakeIntentHelperInstance::HandleUrl(const std::string& url,
+ const std::string& package_name) {}
void FakeIntentHelperInstance::HandleUrlList(
- mojo::Array<mojom::UrlWithMimeTypePtr> urls,
+ std::vector<mojom::UrlWithMimeTypePtr> urls,
mojom::ActivityNamePtr activity,
mojom::ActionType action) {}
void FakeIntentHelperInstance::Init(mojom::IntentHelperHostPtr host_ptr) {}
void FakeIntentHelperInstance::OpenFileToRead(
- const mojo::String& url,
+ const std::string& url,
const OpenFileToReadCallback& callback) {}
void FakeIntentHelperInstance::RequestActivityIcons(
- mojo::Array<mojom::ActivityNamePtr> activities,
+ std::vector<mojom::ActivityNamePtr> activities,
::arc::mojom::ScaleFactor scale_factor,
const RequestActivityIconsCallback& callback) {}
@@ -58,17 +58,17 @@ void FakeIntentHelperInstance::RequestIntentHandlerList(
const RequestIntentHandlerListCallback& callback) {}
void FakeIntentHelperInstance::RequestUrlHandlerList(
- const mojo::String& url,
+ const std::string& url,
const RequestUrlHandlerListCallback& callback) {}
void FakeIntentHelperInstance::RequestUrlListHandlerList(
- mojo::Array<mojom::UrlWithMimeTypePtr> urls,
+ std::vector<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) {
+void FakeIntentHelperInstance::SendBroadcast(const std::string& action,
+ const std::string& package_name,
+ const std::string& cls,
+ const std::string& extras) {
broadcasts_.emplace_back(action, package_name, cls, extras);
}
« 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