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

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

Issue 1770533002: Change userid from a uint32_t to a string guid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@33connector
Patch Set: . Created 4 years, 9 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/lifecycle/lifecycle_unittest.cc ('k') | mojo/shell/tests/shell/driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/tests/loader_unittest.cc
diff --git a/mojo/shell/tests/loader_unittest.cc b/mojo/shell/tests/loader_unittest.cc
index bba249ea8f48e089b7c49c877f46ad13a99903fa..675bde420a3d9d4346bc23204fda3069983af65d 100644
--- a/mojo/shell/tests/loader_unittest.cc
+++ b/mojo/shell/tests/loader_unittest.cc
@@ -389,7 +389,8 @@ class Tester : public ShellClient,
ScopedVector<TestAImpl> a_bindings_;
};
-void OnConnect(base::RunLoop* loop, uint32_t instance_id, uint32_t user_id) {
+void OnConnect(base::RunLoop* loop, const String& user_id,
+ uint32_t instance_id) {
loop->Quit();
}
@@ -522,7 +523,7 @@ TEST_F(LoaderTest, TestEndApplicationClosure) {
bool called = false;
scoped_ptr<ConnectParams> params(new ConnectParams);
params->set_source(CreateShellIdentity());
- params->set_target(Identity("test:test", "", mojom::Connector::kUserRoot));
+ params->set_target(Identity("test:test", "", mojom::kRootUserID));
shell_->SetInstanceQuitCallback(
base::Bind(&QuitClosure, params->target(), &called));
shell_->Connect(std::move(params));
« no previous file with comments | « mojo/shell/tests/lifecycle/lifecycle_unittest.cc ('k') | mojo/shell/tests/shell/driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698