Lines Matching refs:events

41 static void dumpEvents(const std::vector<RawEvent>& events) {  in dumpEvents()  argument
42 for (const RawEvent& event : events) { in dumpEvents()
104 std::vector<RawEvent> events; in getEvents() local
116 events.insert(events.end(), eventBuffer.begin(), eventBuffer.begin() + count); in getEvents()
117 if (expectedEvents && events.size() >= *expectedEvents) { in getEvents()
122 dumpEvents(events); in getEvents()
124 return events; in getEvents()
133 std::vector<RawEvent> events = getEvents(); in consumeInitialDeviceAddedEvents() local
136 for (size_t i = 0; i < events.size() - 1; i++) { in consumeInitialDeviceAddedEvents()
137 const RawEvent& event = events[i]; in consumeInitialDeviceAddedEvents()
143 EXPECT_EQ(existingDevices.size(), events.size() - 1); in consumeInitialDeviceAddedEvents()
145 EXPECT_EQ(EventHubInterface::FINISHED_DEVICE_SCAN, events[events.size() - 1].type); in consumeInitialDeviceAddedEvents()
150 std::vector<RawEvent> events = getEvents(2); in waitForDeviceCreation() local
151 if (events.size() != 2) { in waitForDeviceCreation()
152 ADD_FAILURE() << "Instead of 2 events, received " << events.size(); in waitForDeviceCreation()
155 const RawEvent& deviceAddedEvent = events[0]; in waitForDeviceCreation()
160 const RawEvent& finishedDeviceScanEvent = events[1]; in waitForDeviceCreation()
167 std::vector<RawEvent> events = getEvents(2); in waitForDeviceClose() local
168 ASSERT_EQ(2U, events.size()); in waitForDeviceClose()
169 const RawEvent& deviceRemovedEvent = events[0]; in waitForDeviceClose()
172 const RawEvent& finishedDeviceScanEvent = events[1]; in waitForDeviceClose()
178 std::vector<RawEvent> events = getEvents(); in assertNoMoreEvents() local
179 ASSERT_TRUE(events.empty()); in assertNoMoreEvents()
192 std::vector<RawEvent> events = getEvents(4); in TEST_F() local
193 ASSERT_EQ(4U, events.size()) << "Expected to receive 2 keys and 2 syncs, total of 4 events"; in TEST_F()
194 for (const RawEvent& event : events) { in TEST_F()