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

Unified Diff: services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc

Issue 1916233002: Mark ApplicationImpl::ConnectTo{Application,Service}() as deprecated. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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 | « services/prediction/prediction_apptests.cc ('k') | services/test_service/test_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc
diff --git a/services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc b/services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc
index 38e6ba694b493c956ed722ebdee672cc058ca0cc..3d664f0eaee5c8b7af3f0d3b72a24bbb3b614b38 100644
--- a/services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc
+++ b/services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc
@@ -97,8 +97,8 @@ class MojoUrlRedirectorApplicationTest :
binding_.Bind(GetProxy(&location_files_handler));
http_server::HttpServerFactoryPtr http_server_factory;
- application_impl()->ConnectToService("mojo:http_server",
- &http_server_factory);
+ application_impl()->ConnectToServiceDeprecated("mojo:http_server",
+ &http_server_factory);
mojo::NetAddressPtr location_files_server_addr(mojo::NetAddress::New());
location_files_server_addr->family = mojo::NetAddressFamily::IPV4;
@@ -122,9 +122,10 @@ class MojoUrlRedirectorApplicationTest :
// Connect to the redirector and wait until it registers itself as a
// handler with the server on |redirector_port_|.
- application_impl()->ConnectToApplication("mojo:mojo_url_redirector");
- application_impl()->ConnectToService("mojo:network_service",
- &network_service_);
+ application_impl()->ConnectToApplicationDeprecated(
+ "mojo:mojo_url_redirector");
+ application_impl()->ConnectToServiceDeprecated("mojo:network_service",
+ &network_service_);
WaitForRedirectorRegistration();
}
« no previous file with comments | « services/prediction/prediction_apptests.cc ('k') | services/test_service/test_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698