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

Unified Diff: services/js/pingpong_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/js/network_apptest.cc ('k') | services/media/factory_service/audio_track_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/js/pingpong_apptest.cc
diff --git a/services/js/pingpong_apptest.cc b/services/js/pingpong_apptest.cc
index a1c5f1d2e8ce664f7ca80126c5ba840b8145b99c..f2fe971652d984101ce16a078726e9b5984048f5 100644
--- a/services/js/pingpong_apptest.cc
+++ b/services/js/pingpong_apptest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "mojo/public/cpp/application/connect.h"
#include "services/js/test/js_application_test_base.h"
#include "services/js/test/pingpong_service.mojom.h"
@@ -45,7 +46,8 @@ class JSPingPongTest : public test::JSApplicationTestBase {
void SetUp() override {
ApplicationTestBase::SetUp();
const std::string& url = JSAppURL("pingpong.js");
- application_impl()->ConnectToServiceDeprecated(url, &pingpong_service_);
+ mojo::ConnectToService(application_impl()->shell(), url,
+ GetProxy(&pingpong_service_));
PingPongClientPtr client_ptr;
pingpong_client_.Bind(GetProxy(&client_ptr));
pingpong_service_->SetClient(client_ptr.Pass());
@@ -92,8 +94,8 @@ TEST_F(JSPingPongTest, PingTargetURL) {
// pingpong-target.js URL, we provide a connection to its PingPongService.
TEST_F(JSPingPongTest, PingTargetService) {
PingPongServicePtr target;
- application_impl()->ConnectToServiceDeprecated(JSAppURL("pingpong_target.js"),
- &target);
+ mojo::ConnectToService(application_impl()->shell(),
+ JSAppURL("pingpong_target.js"), GetProxy(&target));
bool returned_value = false;
PingTargetCallback callback(&returned_value);
pingpong_service_->PingTargetService(target.Pass(), 9, callback);
« no previous file with comments | « services/js/network_apptest.cc ('k') | services/media/factory_service/audio_track_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698