Index: mojo/services/network/host_resolver_apptest.cc |
diff --git a/mojo/services/network/host_resolver_apptest.cc b/mojo/services/network/host_resolver_apptest.cc |
index 54f44de1b2dc67894c70807f26fb94e57ce3877f..c6ddd6d142836808fa9a16e1abdfc38683e9862b 100644 |
--- a/mojo/services/network/host_resolver_apptest.cc |
+++ b/mojo/services/network/host_resolver_apptest.cc |
@@ -13,9 +13,9 @@ |
#include "mojo/services/network/interfaces/host_resolver.mojom.h" |
#include "net/base/net_errors.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-#include "third_party/mojo/src/mojo/public/cpp/application/application_connection.h" |
#include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h" |
#include "third_party/mojo/src/mojo/public/cpp/application/application_test_base.h" |
+#include "third_party/mojo/src/mojo/public/cpp/application/connect.h" |
#include "third_party/mojo/src/mojo/public/cpp/bindings/callback.h" |
namespace mojo { |
@@ -74,9 +74,8 @@ class HostResolverImplTest : public test::ApplicationTestBase { |
void SetUp() override { |
ApplicationTestBase::SetUp(); |
- ApplicationConnection* connection = |
- application_impl()->ConnectToApplication("mojo:network_service"); |
- connection->ConnectToService(&network_service_); |
+ ConnectToService(application_impl()->shell(), "mojo:network_service", |
+ GetProxy(&network_service_)); |
} |
NetworkServicePtr network_service_; |