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

Unified Diff: mojo/shell/application_manager_apptest.cc

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
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/services/tracing/tracing_app.cc ('k') | mojo/shell/application_manager_apptest_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/application_manager_apptest.cc
diff --git a/mojo/shell/application_manager_apptest.cc b/mojo/shell/application_manager_apptest.cc
index 92c7272d8168c3e47977eb3faf16efe1a1c33ef3..a725faececafec8fb6c1dbb7ab89904e32d46995 100644
--- a/mojo/shell/application_manager_apptest.cc
+++ b/mojo/shell/application_manager_apptest.cc
@@ -41,7 +41,7 @@ class ApplicationManagerAppTestDelegate
// mojo::ShellClient:
void Initialize(Shell* shell, const std::string& url, uint32_t id) override {}
bool AcceptConnection(Connection* connection) override {
- connection->AddService<CreateInstanceForHandleTest>(this);
+ connection->AddInterface<CreateInstanceForHandleTest>(this);
return true;
}
@@ -175,7 +175,7 @@ TEST_F(ApplicationManagerAppTest, CreateInstanceForHandle) {
mojo::shell::test::mojom::DriverPtr driver;
scoped_ptr<Connection> connection =
shell()->Connect("exe:application_manager_apptest_driver");
- connection->ConnectToService(&driver);
+ connection->GetInterface(&driver);
// 2. Wait for the target to connect to us. (via
// mojo:application_manager_apptests)
« no previous file with comments | « mojo/services/tracing/tracing_app.cc ('k') | mojo/shell/application_manager_apptest_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698