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

Unified Diff: mojo/shell/capability_filter_test.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/shell/application_package_apptest.cc ('k') | mojo/shell/fetcher/about_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/capability_filter_test.cc
diff --git a/mojo/shell/capability_filter_test.cc b/mojo/shell/capability_filter_test.cc
index c626a48c8d41043778316c9b6563767e02966aa3..be91186f65e0f8e267b06a70383c393d60921dd7 100644
--- a/mojo/shell/capability_filter_test.cc
+++ b/mojo/shell/capability_filter_test.cc
@@ -56,7 +56,7 @@ class ConnectionValidator : public ApplicationLoader,
// Overridden from ShellClient:
bool AcceptConnection(Connection* connection) override {
- connection->AddService<Validator>(this);
+ connection->AddInterface<Validator>(this);
return true;
}
@@ -145,7 +145,7 @@ class ServiceApplication : public ShellClient,
validator_->AddServiceCalled(connection->GetRemoteApplicationURL(),
connection->GetConnectionURL(),
Interface::Name_,
- !connection->AddService<Interface>(this));
+ !connection->AddInterface<Interface>(this));
}
Shell* shell_;
@@ -169,7 +169,7 @@ void TestApplication::Initialize(Shell* shell, const std::string& url,
}
bool TestApplication::AcceptConnection(Connection* connection) {
// TestApplications receive their Validator via the inbound connection.
- connection->ConnectToService(&validator_);
+ connection->GetInterface(&validator_);
connection1_ = shell_->Connect("test:service");
connection1_->SetRemoteServiceProviderConnectionErrorHandler(
« no previous file with comments | « mojo/shell/application_package_apptest.cc ('k') | mojo/shell/fetcher/about_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698