File tree Expand file tree Collapse file tree 1 file changed +48
-49
lines changed
Expand file tree Collapse file tree 1 file changed +48
-49
lines changed Original file line number Diff line number Diff line change @@ -224,53 +224,53 @@ TEST_F(ShellTest, DelayAtMostOneEventForFasterThanVSyncInputEvents) {
224224TEST_F (ShellTest, HandlesActualIphoneXsInputEvents) {
225225 // Actual delivery times measured on iPhone Xs, in the unit of frame_time
226226 // (16.67ms for 60Hz).
227- constexpr double iphone_xs_times[] = {0.15 ,
228- 1.0773046874999999 ,
229- 2.1738720703124996 ,
230- 3.0579052734374996 ,
231- 4.0890087890624995 ,
232- 5.0952685546875 ,
233- 6.1251708984375 ,
234- 7.1253076171875 ,
235- 8.125927734374999 ,
236- 9.37248046875 ,
237- 10.133950195312499 ,
238- 11.161201171875 ,
239- 12.226992187499999 ,
240- 13.1443798828125 ,
241- 14.440327148437499 ,
242- 15.091684570312498 ,
243- 16.138681640625 ,
244- 17.126469726562497 ,
245- 18.1592431640625 ,
246- 19.371372070312496 ,
247- 20.033774414062496 ,
248- 21.021782226562497 ,
249- 22.070053710937497 ,
250- 23.325541992187496 ,
251- 24.119648437499997 ,
252- 25.084262695312496 ,
253- 26.077866210937497 ,
254- 27.036547851562496 ,
255- 28.035073242187497 ,
256- 29.081411132812498 ,
257- 30.066064453124998 ,
258- 31.089360351562497 ,
259- 32.086142578125 ,
260- 33.4618798828125 ,
261- 34.14697265624999 ,
262- 35.0513525390625 ,
263- 36.136025390624994 ,
264- 37.1618408203125 ,
265- 38.144472656249995 ,
266- 39.201123046875 ,
267- 40.4339501953125 ,
268- 41.1552099609375 ,
269- 42.102128906249995 ,
270- 43.0426318359375 ,
271- 44.070131835937495 ,
272- 45.08862304687499 ,
273- 46.091469726562494 };
227+ static constexpr double iphone_xs_times[] = {0.15 ,
228+ 1.0773046874999999 ,
229+ 2.1738720703124996 ,
230+ 3.0579052734374996 ,
231+ 4.0890087890624995 ,
232+ 5.0952685546875 ,
233+ 6.1251708984375 ,
234+ 7.1253076171875 ,
235+ 8.125927734374999 ,
236+ 9.37248046875 ,
237+ 10.133950195312499 ,
238+ 11.161201171875 ,
239+ 12.226992187499999 ,
240+ 13.1443798828125 ,
241+ 14.440327148437499 ,
242+ 15.091684570312498 ,
243+ 16.138681640625 ,
244+ 17.126469726562497 ,
245+ 18.1592431640625 ,
246+ 19.371372070312496 ,
247+ 20.033774414062496 ,
248+ 21.021782226562497 ,
249+ 22.070053710937497 ,
250+ 23.325541992187496 ,
251+ 24.119648437499997 ,
252+ 25.084262695312496 ,
253+ 26.077866210937497 ,
254+ 27.036547851562496 ,
255+ 28.035073242187497 ,
256+ 29.081411132812498 ,
257+ 30.066064453124998 ,
258+ 31.089360351562497 ,
259+ 32.086142578125 ,
260+ 33.4618798828125 ,
261+ 34.14697265624999 ,
262+ 35.0513525390625 ,
263+ 36.136025390624994 ,
264+ 37.1618408203125 ,
265+ 38.144472656249995 ,
266+ 39.201123046875 ,
267+ 40.4339501953125 ,
268+ 41.1552099609375 ,
269+ 42.102128906249995 ,
270+ 43.0426318359375 ,
271+ 44.070131835937495 ,
272+ 45.08862304687499 ,
273+ 46.091469726562494 };
274274 constexpr int n = sizeof (iphone_xs_times) / sizeof (iphone_xs_times[0 ]);
275275 // We don't use `constexpr int frame_time` here because MSVC doesn't handle
276276 // it well with lambda capture.
@@ -280,8 +280,7 @@ TEST_F(ShellTest, HandlesActualIphoneXsInputEvents) {
280280 // TestSimulatedInputEvents.
281281 UnitlessTime base_latency =
282282 static_cast <UnitlessTime>(base_latency_f * frame_time);
283- Generator iphone_xs_generator = [frame_time, iphone_xs_times,
284- base_latency](int i) {
283+ Generator iphone_xs_generator = [frame_time, base_latency](int i) {
285284 return base_latency +
286285 static_cast <UnitlessTime>(iphone_xs_times[i] * frame_time);
287286 };
You can’t perform that action at this time.
0 commit comments