Lines Matching defs:now
103 auto now = systemTime(SYSTEM_TIME_MONOTONIC);
107 InputEvent event = { now + s2ns(60), EV_KEY, KEY_HOME, 1 };
109 device->processInput(event, now);
111 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS));
119 auto now = systemTime(SYSTEM_TIME_MONOTONIC);
121 // Input event from now, but will be reported as if it came early.
122 InputEvent event = { now, EV_KEY, KEY_HOME, 1 };
126 device->processInput(event, now - s2ns(11));
128 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS));
145 // Eventually these mock device tests will all expect these calls. For now