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

Unified Diff: mojo/shell/tests/application_manager_unittest.cc

Issue 1719193003: Add a user id parameter to connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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
« no previous file with comments | « mojo/shell/tests/application_manager_apptest_target.cc ('k') | mojo/shell/tests/capability_filter_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/tests/application_manager_unittest.cc
diff --git a/mojo/shell/tests/application_manager_unittest.cc b/mojo/shell/tests/application_manager_unittest.cc
index ac4133d9614d879401e6107be9a589458f94225d..b9d151a34799183453cd21abf384c9484025ced6 100644
--- a/mojo/shell/tests/application_manager_unittest.cc
+++ b/mojo/shell/tests/application_manager_unittest.cc
@@ -600,7 +600,10 @@ TEST_F(ApplicationManagerTest, TestEndApplicationClosure) {
bool called = false;
scoped_ptr<ConnectParams> params(new ConnectParams);
- params->SetTargetURL(GURL("test:test"));
+ params->set_source(CreateShellIdentity());
+ params->set_target(
+ Identity(GURL("test:test"), "", mojom::Shell::kUserRoot,
+ GetPermissiveCapabilityFilter()));
application_manager_->SetInstanceQuitCallback(
base::Bind(&QuitClosure, params->target(), &called));
application_manager_->Connect(std::move(params));
« no previous file with comments | « mojo/shell/tests/application_manager_apptest_target.cc ('k') | mojo/shell/tests/capability_filter_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698