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

Unified Diff: ui/events/mojo/struct_traits_unittest.cc

Issue 2752093004: Makes KeyEvent struct traits restore Event::time_stamp() field (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « ui/events/mojo/event_struct_traits.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/mojo/struct_traits_unittest.cc
diff --git a/ui/events/mojo/struct_traits_unittest.cc b/ui/events/mojo/struct_traits_unittest.cc
index 85a88f9d349f7e202a4a233d642368fcffd502a3..774da72cf2dd5fdaf0a44677bae15eebe2adfea6 100644
--- a/ui/events/mojo/struct_traits_unittest.cc
+++ b/ui/events/mojo/struct_traits_unittest.cc
@@ -136,6 +136,9 @@ TEST_F(StructTraitsTest, KeyEvent) {
{'\x12', VKEY_2, EF_CONTROL_DOWN},
{'Z', VKEY_Z, EF_CAPS_LOCK_ON},
{'z', VKEY_Z, EF_NONE},
+ {ET_KEY_PRESSED, VKEY_Z, EF_NONE,
+ base::TimeTicks::FromInternalValue(101)},
+ {'Z', VKEY_Z, EF_NONE, base::TimeTicks::FromInternalValue(102)},
};
mojom::TraitsTestServicePtr proxy = GetTraitsTestProxy();
@@ -156,6 +159,7 @@ TEST_F(StructTraitsTest, KeyEvent) {
EXPECT_EQ(kTestData[i].GetConflatedWindowsKeyCode(),
output_key_event->GetConflatedWindowsKeyCode());
EXPECT_EQ(kTestData[i].code(), output_key_event->code());
+ EXPECT_EQ(kTestData[i].time_stamp(), output_key_event->time_stamp());
}
}
« no previous file with comments | « ui/events/mojo/event_struct_traits.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698