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

Unified Diff: mojo/shell/tests/lifecycle/lifecycle_unittest.cc

Issue 1764253002: Rename shell.mojom to connector.mojom, ApplicationManager to Shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@32exe
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/connect/connect_unittest.cc ('k') | mojo/shell/tests/loader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/tests/lifecycle/lifecycle_unittest.cc
diff --git a/mojo/shell/tests/lifecycle/lifecycle_unittest.cc b/mojo/shell/tests/lifecycle/lifecycle_unittest.cc
index 2734262636ac781447d93724cb66f67c5b792b3b..39b67c1605582b96a680d66d9e00049443d33245 100644
--- a/mojo/shell/tests/lifecycle/lifecycle_unittest.cc
+++ b/mojo/shell/tests/lifecycle/lifecycle_unittest.cc
@@ -14,7 +14,7 @@
#include "mojo/edk/embedder/platform_channel_pair.h"
#include "mojo/edk/embedder/scoped_platform_handle.h"
#include "mojo/shell/public/cpp/shell_test.h"
-#include "mojo/shell/public/interfaces/application_manager.mojom.h"
+#include "mojo/shell/public/interfaces/shell.mojom.h"
#include "mojo/shell/runner/common/switches.h"
#include "mojo/shell/tests/lifecycle/lifecycle_unittest.mojom.h"
@@ -210,16 +210,16 @@ class LifecycleTest : public mojo::test::ShellTest {
test_interfaces.push_back("*");
filter->filter.insert("*", std::move(test_interfaces));
- mojo::shell::mojom::ApplicationManagerPtr application_manager;
- connector()->ConnectToInterface("mojo:shell", &application_manager);
+ mojo::shell::mojom::ShellPtr shell;
+ connector()->ConnectToInterface("mojo:shell", &shell);
mojo::shell::mojom::ShellClientFactoryPtr factory;
factory.Bind(mojo::InterfacePtrInfo<mojo::shell::mojom::ShellClientFactory>(
std::move(pipe), 0u));
- application_manager->CreateInstanceForFactory(
- std::move(factory), kTestExeName, mojom::Connector::kUserInherit,
- std::move(filter), std::move(request));
+ shell->CreateInstanceForFactory(std::move(factory), kTestExeName,
+ mojom::Connector::kUserInherit,
+ std::move(filter), std::move(request));
base::LaunchOptions options;
#if defined(OS_WIN)
@@ -251,12 +251,12 @@ class LifecycleTest : public mojo::test::ShellTest {
private:
scoped_ptr<InstanceState> TrackInstances() {
- mojom::ApplicationManagerPtr am;
- connector()->ConnectToInterface("mojo:shell", &am);
+ mojom::ShellPtr shell;
+ connector()->ConnectToInterface("mojo:shell", &shell);
mojom::InstanceListenerPtr listener;
base::RunLoop loop;
InstanceState* state = new InstanceState(GetProxy(&listener), &loop);
- am->AddInstanceListener(std::move(listener));
+ shell->AddInstanceListener(std::move(listener));
loop.Run();
return make_scoped_ptr(state);
}
« no previous file with comments | « mojo/shell/tests/connect/connect_unittest.cc ('k') | mojo/shell/tests/loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698