Lines Matching refs:order
236 void MessageBoxFunc(TaskList* order, int cookie, bool is_reentrant) { in MessageBoxFunc() argument
237 order->RecordStart(MESSAGEBOX, cookie); in MessageBoxFunc()
241 order->RecordEnd(MESSAGEBOX, cookie); in MessageBoxFunc()
245 void EndDialogFunc(TaskList* order, int cookie) { in EndDialogFunc() argument
246 order->RecordStart(ENDDIALOG, cookie); in EndDialogFunc()
252 order->RecordEnd(ENDDIALOG, cookie); in EndDialogFunc()
256 void RecursiveFunc(TaskList* order, int cookie, int depth, in RecursiveFunc() argument
258 order->RecordStart(RECURSIVE, cookie); in RecursiveFunc()
264 Bind(&RecursiveFunc, order, cookie, depth - 1, is_reentrant)); in RecursiveFunc()
266 order->RecordEnd(RECURSIVE, cookie); in RecursiveFunc()
269 void QuitFunc(TaskList* order, int cookie) { in QuitFunc() argument
270 order->RecordStart(QUITMESSAGELOOP, cookie); in QuitFunc()
272 order->RecordEnd(QUITMESSAGELOOP, cookie); in QuitFunc()
278 TaskList* order, in RecursiveFuncWin() argument
281 Bind(&RecursiveFunc, order, 1, 2, is_reentrant)); in RecursiveFuncWin()
283 Bind(&MessageBoxFunc, order, 2, is_reentrant)); in RecursiveFuncWin()
285 Bind(&RecursiveFunc, order, 3, 2, is_reentrant)); in RecursiveFuncWin()
293 Bind(&EndDialogFunc, order, 4)); in RecursiveFuncWin()
295 Bind(&QuitFunc, order, 5)); in RecursiveFuncWin()
331 TaskList order; in RunTest_RecursiveDenial2() local
338 &order, in RunTest_RecursiveDenial2()
344 ASSERT_EQ(17u, order.Size()); in RunTest_RecursiveDenial2()
345 EXPECT_EQ(order.Get(0), TaskItem(RECURSIVE, 1, true)); in RunTest_RecursiveDenial2()
346 EXPECT_EQ(order.Get(1), TaskItem(RECURSIVE, 1, false)); in RunTest_RecursiveDenial2()
347 EXPECT_EQ(order.Get(2), TaskItem(MESSAGEBOX, 2, true)); in RunTest_RecursiveDenial2()
348 EXPECT_EQ(order.Get(3), TaskItem(MESSAGEBOX, 2, false)); in RunTest_RecursiveDenial2()
349 EXPECT_EQ(order.Get(4), TaskItem(RECURSIVE, 3, true)); in RunTest_RecursiveDenial2()
350 EXPECT_EQ(order.Get(5), TaskItem(RECURSIVE, 3, false)); in RunTest_RecursiveDenial2()
353 EXPECT_EQ(order.Get(6), TaskItem(ENDDIALOG, 4, true)); in RunTest_RecursiveDenial2()
354 EXPECT_EQ(order.Get(7), TaskItem(QUITMESSAGELOOP, 5, true)); in RunTest_RecursiveDenial2()
355 EXPECT_EQ(order.Get(8), TaskItem(QUITMESSAGELOOP, 5, false)); in RunTest_RecursiveDenial2()
356 EXPECT_EQ(order.Get(9), TaskItem(RECURSIVE, 1, true)); in RunTest_RecursiveDenial2()
357 EXPECT_EQ(order.Get(10), TaskItem(RECURSIVE, 1, false)); in RunTest_RecursiveDenial2()
358 EXPECT_EQ(order.Get(11), TaskItem(RECURSIVE, 3, true)); in RunTest_RecursiveDenial2()
359 EXPECT_EQ(order.Get(12), TaskItem(RECURSIVE, 3, false)); in RunTest_RecursiveDenial2()
360 EXPECT_EQ(order.Get(13), TaskItem(RECURSIVE, 1, true)); in RunTest_RecursiveDenial2()
361 EXPECT_EQ(order.Get(14), TaskItem(RECURSIVE, 1, false)); in RunTest_RecursiveDenial2()
362 EXPECT_EQ(order.Get(15), TaskItem(RECURSIVE, 3, true)); in RunTest_RecursiveDenial2()
363 EXPECT_EQ(order.Get(16), TaskItem(RECURSIVE, 3, false)); in RunTest_RecursiveDenial2()
375 TaskList order; in RunTest_RecursiveSupport2() local
382 &order, in RunTest_RecursiveSupport2()
388 ASSERT_EQ(18u, order.Size()); in RunTest_RecursiveSupport2()
389 EXPECT_EQ(order.Get(0), TaskItem(RECURSIVE, 1, true)); in RunTest_RecursiveSupport2()
390 EXPECT_EQ(order.Get(1), TaskItem(RECURSIVE, 1, false)); in RunTest_RecursiveSupport2()
391 EXPECT_EQ(order.Get(2), TaskItem(MESSAGEBOX, 2, true)); in RunTest_RecursiveSupport2()
393 EXPECT_EQ(order.Get(3), TaskItem(RECURSIVE, 3, true)); in RunTest_RecursiveSupport2()
394 EXPECT_EQ(order.Get(4), TaskItem(RECURSIVE, 3, false)); in RunTest_RecursiveSupport2()
395 EXPECT_EQ(order.Get(5), TaskItem(ENDDIALOG, 4, true)); in RunTest_RecursiveSupport2()
396 EXPECT_EQ(order.Get(6), TaskItem(ENDDIALOG, 4, false)); in RunTest_RecursiveSupport2()
397 EXPECT_EQ(order.Get(7), TaskItem(MESSAGEBOX, 2, false)); in RunTest_RecursiveSupport2()
407 EXPECT_EQ(order.Get(12), TaskItem(RECURSIVE, 3, true)); in RunTest_RecursiveSupport2()
408 EXPECT_EQ(order.Get(13), TaskItem(RECURSIVE, 3, false)); in RunTest_RecursiveSupport2()
409 EXPECT_EQ(order.Get(14), TaskItem(RECURSIVE, 1, true)); in RunTest_RecursiveSupport2()
410 EXPECT_EQ(order.Get(15), TaskItem(RECURSIVE, 1, false)); in RunTest_RecursiveSupport2()
411 EXPECT_EQ(order.Get(16), TaskItem(RECURSIVE, 3, true)); in RunTest_RecursiveSupport2()
412 EXPECT_EQ(order.Get(17), TaskItem(RECURSIVE, 3, false)); in RunTest_RecursiveSupport2()