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

Unified Diff: mojo/runner/native_runner_unittest.cc

Issue 1354003002: Make CapabilityFilter be part of Identity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 months 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
Index: mojo/runner/native_runner_unittest.cc
diff --git a/mojo/runner/native_runner_unittest.cc b/mojo/runner/native_runner_unittest.cc
index e4a636d7b246bed0f616945dfca3de61ab61e429..25f01a6208556c7886654d79f1dc34c070f1f4f2 100644
--- a/mojo/runner/native_runner_unittest.cc
+++ b/mojo/runner/native_runner_unittest.cc
@@ -92,15 +92,12 @@ TEST_F(NativeApplicationLoaderTest, DoesNotExist) {
GURL url(util::FilePathToFileURL(temp_dir.path().Append(nonexistent_file)));
InterfaceRequest<ServiceProvider> services;
ServiceProviderPtr service_provider;
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = mojo::String::From(url.spec());
scoped_ptr<shell::ConnectToApplicationParams> params(
new shell::ConnectToApplicationParams);
- params->SetURLInfo(request.Pass());
+ params->SetTargetURL(url);
params->set_services(services.Pass());
params->set_exposed_services(service_provider.Pass());
- params->set_filter(shell::GetPermissiveCapabilityFilter());
context_->application_manager()->ConnectToApplication(params.Pass());
EXPECT_FALSE(state_.runner_was_created);
EXPECT_FALSE(state_.runner_was_started);

Powered by Google App Engine
This is Rietveld 408576698