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

Unified Diff: ash/wm/workspace_controller_unittest.cc

Issue 1260453006: ui: events: Add a class to hold common touch and stylus properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address build problems, add accessor and unit tests. Created 5 years, 4 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
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..a4d5575cfe2a8c27f3a2b6d3224a03626045ea1d 100644
--- a/ash/wm/workspace_controller_unittest.cc
+++ b/ash/wm/workspace_controller_unittest.cc
@@ -1478,8 +1478,10 @@ TEST_F(WorkspaceControllerTest, WindowEdgeHitTest) {
for (int i = 0; i < kNumPoints; ++i) {
SCOPED_TRACE(points[i].direction);
const gfx::Point& location = points[i].location;
- ui::MouseEvent mouse(ui::ET_MOUSE_MOVED, location, location,
- ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
+ ui::MouseEvent mouse(
+ ui::ET_MOUSE_MOVED, location, location, ui::EventTimeForNow(),
+ ui::EF_NONE, ui::EF_NONE,
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
ui::EventTarget* target = targeter->FindTargetForEvent(root, &mouse);
EXPECT_EQ(expected_target, target);
@@ -1519,8 +1521,10 @@ TEST_F(WorkspaceControllerTest, WindowEdgeMouseHitTestPanel) {
for (int i = 0; i < kNumPoints; ++i) {
SCOPED_TRACE(points[i].direction);
const gfx::Point& location = points[i].location;
- ui::MouseEvent mouse(ui::ET_MOUSE_MOVED, location, location,
- ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
+ ui::MouseEvent mouse(
+ ui::ET_MOUSE_MOVED, location, location, ui::EventTimeForNow(),
+ ui::EF_NONE, ui::EF_NONE,
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
ui::EventTarget* target = targeter->FindTargetForEvent(root, &mouse);
if (points[i].is_target_hit)
EXPECT_EQ(window.get(), target);
@@ -1596,8 +1600,10 @@ TEST_F(WorkspaceControllerTest, WindowEdgeHitTestDocked) {
for (int i = 0; i < kNumPoints; ++i) {
SCOPED_TRACE(points[i].direction);
const gfx::Point& location = points[i].location;
- ui::MouseEvent mouse(ui::ET_MOUSE_MOVED, location, location,
- ui::EventTimeForNow(), ui::EF_NONE, ui::EF_NONE);
+ ui::MouseEvent mouse(
+ ui::ET_MOUSE_MOVED, location, location, ui::EventTimeForNow(),
+ ui::EF_NONE, ui::EF_NONE,
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
ui::EventTarget* target = targeter->FindTargetForEvent(root, &mouse);
if (points[i].is_target_hit)
EXPECT_EQ(window.get(), target);

Powered by Google App Engine
This is Rietveld 408576698