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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc

Issue 657603002: ash: ozone: apply transformation to events outside the root window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove explicit gfx::Rect to gfx::RectF conversion Created 6 years, 1 month 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: ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc b/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
index b7162bc4a87e75fea23a17ab41d68bb275bb835a..6787d41aaf8638976029cccc220d69c5047a3920 100644
--- a/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
@@ -57,12 +57,13 @@ class MockCursorEvdev : public CursorDelegateEvdev {
void MoveCursor(const gfx::Vector2dF& delta) override {
cursor_location_ = gfx::PointF(delta.x(), delta.y());
}
+ gfx::PointF GetLocation() override { return cursor_location_; }
+ gfx::PointF GetRootLocation() override { return cursor_location_; }
bool IsCursorVisible() override { return 1; }
gfx::Rect GetCursorDisplayBounds() override {
NOTIMPLEMENTED();
return gfx::Rect();
}
- gfx::PointF location() override { return cursor_location_; }
private:
// The location of the mock cursor.
@@ -449,7 +450,7 @@ TEST_F(EventConverterEvdevImplTest, MouseMove) {
event = dispatched_mouse_event(0);
EXPECT_EQ(ui::ET_MOUSE_MOVED, event->type());
- EXPECT_EQ(cursor()->location(), gfx::PointF(4, 2));
+ EXPECT_EQ(cursor()->GetLocation(), gfx::PointF(4, 2));
}
TEST_F(EventConverterEvdevImplTest, UnmappedKeyPress) {

Powered by Google App Engine
This is Rietveld 408576698