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

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

Issue 1915403002: ApplicationImpl::ConnectToServiceDeprecated() -> mojo::ConnectToService() conversion, part 2. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh 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') | no next file » | 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 3d664f0eaee5c8b7af3f0d3b72a24bbb3b614b38..bdcb2ebca28041d8f97e443ee1ec32814a74291c 100644
--- a/services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc
+++ b/services/python/mojo_url_redirector/mojo_url_redirector_apptest.cc
@@ -10,6 +10,7 @@
#include "mojo/data_pipe_utils/data_pipe_utils.h"
#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/public/cpp/application/application_test_base.h"
+#include "mojo/public/cpp/application/connect.h"
#include "mojo/services/http_server/cpp/http_server_util.h"
#include "mojo/services/http_server/interfaces/http_server.mojom.h"
#include "mojo/services/http_server/interfaces/http_server_factory.mojom.h"
@@ -97,8 +98,8 @@ class MojoUrlRedirectorApplicationTest :
binding_.Bind(GetProxy(&location_files_handler));
http_server::HttpServerFactoryPtr http_server_factory;
- application_impl()->ConnectToServiceDeprecated("mojo:http_server",
- &http_server_factory);
+ mojo::ConnectToService(application_impl()->shell(), "mojo:http_server",
+ GetProxy(&http_server_factory));
mojo::NetAddressPtr location_files_server_addr(mojo::NetAddress::New());
location_files_server_addr->family = mojo::NetAddressFamily::IPV4;
@@ -124,8 +125,8 @@ class MojoUrlRedirectorApplicationTest :
// handler with the server on |redirector_port_|.
application_impl()->ConnectToApplicationDeprecated(
"mojo:mojo_url_redirector");
- application_impl()->ConnectToServiceDeprecated("mojo:network_service",
- &network_service_);
+ mojo::ConnectToService(application_impl()->shell(), "mojo:network_service",
+ GetProxy(&network_service_));
WaitForRedirectorRegistration();
}
« no previous file with comments | « services/prediction/prediction_apptests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698