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

Unified Diff: services/http_server/http_server_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/files/files_test_base.cc ('k') | services/http_server/http_server_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/http_server/http_server_apptest.cc
diff --git a/services/http_server/http_server_apptest.cc b/services/http_server/http_server_apptest.cc
index a48ccf8615de9b8ca3baf9db1896a97cce13b206..280a867ecd0bd8b8e361485800355e3a77317168 100644
--- a/services/http_server/http_server_apptest.cc
+++ b/services/http_server/http_server_apptest.cc
@@ -8,6 +8,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/public/cpp/system/macros.h"
#include "mojo/services/http_server/cpp/http_server_util.h"
#include "mojo/services/http_server/interfaces/http_server.mojom.h"
@@ -97,10 +98,10 @@ class HttpServerApplicationTest : public mojo::test::ApplicationTestBase {
void SetUp() override {
ApplicationTestBase::SetUp();
- application_impl()->ConnectToServiceDeprecated("mojo:http_server",
- &http_server_factory_);
- application_impl()->ConnectToServiceDeprecated("mojo:network_service",
- &network_service_);
+ mojo::ConnectToService(application_impl()->shell(), "mojo:http_server",
+ GetProxy(&http_server_factory_));
+ mojo::ConnectToService(application_impl()->shell(), "mojo:network_service",
+ GetProxy(&network_service_));
}
http_server::HttpServerPtr CreateHttpServer();
« no previous file with comments | « services/files/files_test_base.cc ('k') | services/http_server/http_server_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698