Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ash / drag_drop / drag_drop_controller_unittest.cc
index 8ad4271..241edb2 100644 (file)
@@ -737,8 +737,9 @@ TEST_F(DragDropControllerTest, SyntheticEventsDuringDragDrop) {
     gfx::Point mouse_move_location = drag_view->bounds().CenterPoint();
     ui::MouseEvent mouse_move(ui::ET_MOUSE_MOVED, mouse_move_location,
                               mouse_move_location, 0, 0);
-    Shell::GetPrimaryRootWindow()->GetDispatcher()->AsWindowTreeHostDelegate()->
-        OnHostMouseEvent(&mouse_move);
+    ui::EventDispatchDetails details = Shell::GetPrimaryRootWindow()->
+        GetDispatcher()->OnEventFromSource(&mouse_move);
+    ASSERT_FALSE(details.dispatcher_destroyed);
   }
 
   generator.ReleaseLeftButton();