Index: ash/drag_drop/drag_drop_controller_unittest.cc |
diff --git a/ash/drag_drop/drag_drop_controller_unittest.cc b/ash/drag_drop/drag_drop_controller_unittest.cc |
index e08d793bd10da088ff2095309caaa169bb8a887f..9ef0b9b7954eab4caef0aea3ed567fda3cd6c1d1 100644 |
--- a/ash/drag_drop/drag_drop_controller_unittest.cc |
+++ b/ash/drag_drop/drag_drop_controller_unittest.cc |
@@ -24,7 +24,6 @@ |
#include "ui/events/event.h" |
#include "ui/events/event_utils.h" |
#include "ui/events/gestures/gesture_types.h" |
-#include "ui/events/test/events_test_utils.h" |
#include "ui/gfx/animation/linear_animation.h" |
#include "ui/gfx/image/image_skia_rep.h" |
#include "ui/views/test/test_views_delegate.h" |
@@ -283,12 +282,8 @@ |
ui::EventTimeForNow(), |
ui::GestureEventDetails(gesture_type, 0, 0), |
1); |
- ui::EventSource* event_source = |
- Shell::GetPrimaryRootWindow()->GetHost()->GetEventSource(); |
- ui::EventSourceTestApi event_source_test(event_source); |
- ui::EventDispatchDetails details = |
- event_source_test.SendEventToProcessor(&gesture_event); |
- CHECK(!details.dispatcher_destroyed); |
+ Shell::GetPrimaryRootWindow()->GetHost()->dispatcher()->DispatchGestureEvent( |
+ &gesture_event); |
} |
} // namespace |