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

Unified Diff: ash/mus/window_manager_unittest.cc

Issue 2089183003: mus: Introduce API for embedder to dispatch event to the embeded client. Base URL: https://chromium.googlesource.com/chromium/src.git@mus-parent-window-receives-child-event
Patch Set: Created 4 years, 6 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 | « no previous file | components/mus/public/cpp/lib/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager_unittest.cc
diff --git a/ash/mus/window_manager_unittest.cc b/ash/mus/window_manager_unittest.cc
index 5c300e9eac5d1b1f1c7d7b8fc5ea1ddce47e4e87..696671ee637ca2beaaac5409233854a86eff32e9 100644
--- a/ash/mus/window_manager_unittest.cc
+++ b/ash/mus/window_manager_unittest.cc
@@ -44,7 +44,7 @@ class WindowManagerTest : public shell::test::ShellTest {
DISALLOW_COPY_AND_ASSIGN(WindowManagerTest);
};
-void OnEmbed(bool success) {
+void OnEmbed(bool success, ::mus::mojom::InputEventHandlerPtr handler) {
ASSERT_TRUE(success);
}
@@ -131,7 +131,7 @@ TEST_F(WindowManagerTest, OpenWindow) {
// |child_window|. This blocks until it succeeds.
::mus::mojom::WindowTreeClientPtr tree_client;
auto tree_client_request = GetProxy(&tree_client);
- child_window->Embed(std::move(tree_client), base::Bind(&OnEmbed));
+ child_window->Embed(std::move(tree_client));
std::unique_ptr<::mus::WindowTreeClient> child_client(
new ::mus::WindowTreeClient(&window_tree_delegate, nullptr,
std::move(tree_client_request)));
« no previous file with comments | « no previous file | components/mus/public/cpp/lib/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698