Lines Matching refs:kEvents
158 WebMouseEvent kEvents[3] = {
164 AddEventsToFilter(filter_.get(), kEvents, arraysize(kEvents));
171 AddEventsToFilter(filter_.get(), kEvents, arraysize(kEvents));
172 ASSERT_EQ(arraysize(kEvents), ipc_sink_.message_count());
173 ASSERT_EQ(arraysize(kEvents), event_recorder_.record_count());
176 for (size_t i = 0; i < arraysize(kEvents); ++i) {
186 EXPECT_EQ(kEvents[i].type, event_type);
192 EXPECT_EQ(kEvents[i].size, event->size);
193 EXPECT_TRUE(memcmp(&kEvents[i], event, event->size) == 0);
198 AddEventsToFilter(filter_.get(), kEvents, arraysize(kEvents));
199 EXPECT_EQ(arraysize(kEvents), ipc_sink_.message_count());
200 EXPECT_EQ(2 * arraysize(kEvents), event_recorder_.record_count());
201 EXPECT_EQ(arraysize(kEvents), message_recorder_.message_count());
203 for (size_t i = 0; i < arraysize(kEvents); ++i) {
211 EXPECT_EQ(kEvents[i].size, event->size);
212 EXPECT_TRUE(memcmp(&kEvents[i], event, event->size) == 0);
223 AddEventsToFilter(filter_.get(), kEvents, arraysize(kEvents));
224 EXPECT_EQ(arraysize(kEvents), ipc_sink_.message_count());
225 EXPECT_EQ(arraysize(kEvents), event_recorder_.record_count());
228 for (size_t i = 0; i < arraysize(kEvents); ++i) {
237 EXPECT_EQ(kEvents[i].type, event_type);