| Index: mojo/shell/standalone/shell_apptest.cc
|
| diff --git a/mojo/shell/standalone/shell_apptest.cc b/mojo/shell/standalone/shell_apptest.cc
|
| index 2ded9989d86f108fe7d9aea9bbccc5f4944f16ca..7f2d2b01a34233fcb2902217d2c60d36679b1f7b 100644
|
| --- a/mojo/shell/standalone/shell_apptest.cc
|
| +++ b/mojo/shell/standalone/shell_apptest.cc
|
| @@ -77,7 +77,7 @@ class ShellHTTPAppTest : public test::ApplicationTestBase {
|
| void SetUp() override {
|
| ApplicationTestBase::SetUp();
|
|
|
| - shell()->ConnectToService("mojo:http_server", &http_server_factory_);
|
| + shell()->ConnectToInterface("mojo:http_server", &http_server_factory_);
|
|
|
| NetAddressPtr local_address(NetAddress::New());
|
| local_address->family = NET_ADDRESS_FAMILY_IPV4;
|
| @@ -117,7 +117,7 @@ class ShellHTTPAppTest : public test::ApplicationTestBase {
|
| // Test that we can load apps over http.
|
| TEST_F(ShellHTTPAppTest, Http) {
|
| InterfacePtr<Pingable> pingable;
|
| - shell()->ConnectToService(GetURL("app"), &pingable);
|
| + shell()->ConnectToInterface(GetURL("app"), &pingable);
|
| pingable->Ping("hello",
|
| [this](const String& app_url, const String& connection_url,
|
| const String& message) {
|
| @@ -133,7 +133,7 @@ TEST_F(ShellHTTPAppTest, Http) {
|
| // TODO(aa): Test that apps receive the correct URL parameters.
|
| TEST_F(ShellHTTPAppTest, Redirect) {
|
| InterfacePtr<Pingable> pingable;
|
| - shell()->ConnectToService(GetURL("redirect"), &pingable);
|
| + shell()->ConnectToInterface(GetURL("redirect"), &pingable);
|
| pingable->Ping("hello",
|
| [this](const String& app_url, const String& connection_url,
|
| const String& message) {
|
| @@ -155,8 +155,8 @@ TEST_F(ShellHTTPAppTest, Redirect) {
|
| TEST_F(ShellHTTPAppTest, MAYBE_QueryHandling) {
|
| InterfacePtr<Pingable> pingable1;
|
| InterfacePtr<Pingable> pingable2;
|
| - shell()->ConnectToService(GetURL("app?foo"), &pingable1);
|
| - shell()->ConnectToService(GetURL("app?bar"), &pingable2);
|
| + shell()->ConnectToInterface(GetURL("app?foo"), &pingable1);
|
| + shell()->ConnectToInterface(GetURL("app?bar"), &pingable2);
|
|
|
| int num_responses = 0;
|
| auto callback = [this, &num_responses](const String& app_url,
|
| @@ -182,7 +182,7 @@ TEST_F(ShellHTTPAppTest, MAYBE_QueryHandling) {
|
| // mojo: URLs can have querystrings too
|
| TEST_F(ShellAppTest, MojoURLQueryHandling) {
|
| InterfacePtr<Pingable> pingable;
|
| - shell()->ConnectToService("mojo:pingable_app?foo", &pingable);
|
| + shell()->ConnectToInterface("mojo:pingable_app?foo", &pingable);
|
| auto callback = [this](const String& app_url, const String& connection_url,
|
| const String& message) {
|
| EXPECT_TRUE(base::EndsWith(app_url, "/pingable_app.mojo",
|
|
|