| Index: ash/wm/workspace_controller_unittest.cc
|
| diff --git a/ash/wm/workspace_controller_unittest.cc b/ash/wm/workspace_controller_unittest.cc
|
| index 3739158577a6a31a7d5e5282f277b6136d93cacf..1172762956600eb9c6bc99e6e3656477d713825b 100644
|
| --- a/ash/wm/workspace_controller_unittest.cc
|
| +++ b/ash/wm/workspace_controller_unittest.cc
|
| @@ -1477,7 +1477,7 @@ TEST_F(WorkspaceControllerTest, WindowEdgeHitTest) {
|
| aura::Window* expected_target = times == 0 ? second.get() : first.get();
|
| for (int i = 0; i < kNumPoints; ++i) {
|
| SCOPED_TRACE(points[i].direction);
|
| - const gfx::Point& location = points[i].location;
|
| + auto location = gfx::PointF(points[i].location);
|
| ui::MouseEvent mouse(ui::ET_MOUSE_MOVED, location, location,
|
| ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
|
| ui::EventTarget* target = targeter->FindTargetForEvent(root, &mouse);
|
| @@ -1518,7 +1518,7 @@ TEST_F(WorkspaceControllerTest, WindowEdgeMouseHitTestPanel) {
|
| };
|
| for (int i = 0; i < kNumPoints; ++i) {
|
| SCOPED_TRACE(points[i].direction);
|
| - const gfx::Point& location = points[i].location;
|
| + auto location = gfx::PointF(points[i].location);
|
| ui::MouseEvent mouse(ui::ET_MOUSE_MOVED, location, location,
|
| ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
|
| ui::EventTarget* target = targeter->FindTargetForEvent(root, &mouse);
|
| @@ -1554,7 +1554,7 @@ TEST_F(WorkspaceControllerTest, WindowEdgeTouchHitTestPanel) {
|
| };
|
| for (int i = 0; i < kNumPoints; ++i) {
|
| SCOPED_TRACE(points[i].direction);
|
| - const gfx::Point& location = points[i].location;
|
| + auto location = gfx::PointF(points[i].location);
|
| ui::TouchEvent touch(ui::ET_TOUCH_PRESSED, location, 0,
|
| ui::EventTimeForNow());
|
| ui::EventTarget* target = targeter->FindTargetForEvent(root, &touch);
|
| @@ -1595,7 +1595,7 @@ TEST_F(WorkspaceControllerTest, WindowEdgeHitTestDocked) {
|
| };
|
| for (int i = 0; i < kNumPoints; ++i) {
|
| SCOPED_TRACE(points[i].direction);
|
| - const gfx::Point& location = points[i].location;
|
| + auto location = gfx::PointF(points[i].location);
|
| ui::MouseEvent mouse(ui::ET_MOUSE_MOVED, location, location,
|
| ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
|
| ui::EventTarget* target = targeter->FindTargetForEvent(root, &mouse);
|
|
|