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

Unified Diff: mojo/shell/application_package_apptest.cc

Issue 1687693002: Rename ConnectToService to ConnectToInterface() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sp2
Patch Set: . Created 4 years, 10 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 | « mojo/shell/application_manager_apptest_target.cc ('k') | mojo/shell/capability_filter_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/application_package_apptest.cc
diff --git a/mojo/shell/application_package_apptest.cc b/mojo/shell/application_package_apptest.cc
index 7d2e43c3d34183e77f9185520eee7867caf098c2..5b03417c82e4bf9e8950dbe004abfae312aceecb 100644
--- a/mojo/shell/application_package_apptest.cc
+++ b/mojo/shell/application_package_apptest.cc
@@ -176,7 +176,7 @@ TEST_F(ApplicationPackageApptest, Basic) {
// We need to do this to force the shell to read the test app's manifest and
// register aliases.
test::mojom::ApplicationPackageApptestServicePtr root_service;
- shell()->ConnectToService("mojo:mojo_shell_apptests", &root_service);
+ shell()->ConnectToInterface("mojo:mojo_shell_apptests", &root_service);
base::RunLoop run_loop;
std::string root_name;
root_service->GetName(base::Bind(&ReceiveName, &root_name, &run_loop));
@@ -187,7 +187,7 @@ TEST_F(ApplicationPackageApptest, Basic) {
// Now subsequent connects to applications provided by the root app will be
// resolved correctly.
test::mojom::ApplicationPackageApptestServicePtr service_a;
- shell()->ConnectToService("mojo:package_test_a", &service_a);
+ shell()->ConnectToInterface("mojo:package_test_a", &service_a);
base::RunLoop run_loop;
std::string a_name;
service_a->GetName(base::Bind(&ReceiveName, &a_name, &run_loop));
@@ -197,7 +197,7 @@ TEST_F(ApplicationPackageApptest, Basic) {
{
test::mojom::ApplicationPackageApptestServicePtr service_b;
- shell()->ConnectToService("mojo:package_test_b", &service_b);
+ shell()->ConnectToInterface("mojo:package_test_b", &service_b);
base::RunLoop run_loop;
std::string b_name;
service_b->GetName(base::Bind(&ReceiveName, &b_name, &run_loop));
« no previous file with comments | « mojo/shell/application_manager_apptest_target.cc ('k') | mojo/shell/capability_filter_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698