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

Unified Diff: components/html_viewer/ax_provider_apptest.cc

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
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 | « components/font_service/font_service_app.cc ('k') | components/html_viewer/blink_platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/ax_provider_apptest.cc
diff --git a/components/html_viewer/ax_provider_apptest.cc b/components/html_viewer/ax_provider_apptest.cc
index 2ee55873366cac44fd238719f2033b92fb19857d..7b80b7608bd0f04e3d9468a4b74f10c2b37f7a29 100644
--- a/components/html_viewer/ax_provider_apptest.cc
+++ b/components/html_viewer/ax_provider_apptest.cc
@@ -87,7 +87,7 @@ TEST_F(AXProviderTest, HelloWorld) {
// Embed the html_viewer in a Window.
mus::mojom::WindowTreeClientPtr tree_client;
- connection->ConnectToService(&tree_client);
+ connection->GetInterface(&tree_client);
mus::Window* embed_window = window_manager()->NewWindow();
embed_window->Embed(std::move(tree_client));
@@ -102,7 +102,7 @@ TEST_F(AXProviderTest, HelloWorld) {
array[0]->parent_id = 0u;
web_view::mojom::FrameClientPtr frame_client;
- connection->ConnectToService(&frame_client);
+ connection->GetInterface(&frame_client);
frame_client->OnConnect(
std::move(frame_ptr), 1u, embed_window->id(),
web_view::mojom::WindowConnectType::USE_NEW, std::move(array),
@@ -110,7 +110,7 @@ TEST_F(AXProviderTest, HelloWorld) {
// Connect to the AxProvider of the HTML document and get the AxTree.
AxProviderPtr ax_provider;
- connection->ConnectToService(&ax_provider);
+ connection->GetInterface(&ax_provider);
Array<AxNodePtr> ax_tree;
ax_provider->GetTree([&ax_tree](Array<AxNodePtr> tree) {
ax_tree = std::move(tree);
« no previous file with comments | « components/font_service/font_service_app.cc ('k') | components/html_viewer/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698