Lines Matching refs:context

111 check_watching_message(LaunchContext &context, team_id team, int32 &cookie,  in check_watching_message()  argument
115 CHK(context.WaitForMessage(team, MSG_MESSAGE_RECEIVED, false, in check_watching_message()
117 BMessage *container = context.NextMessageFrom(team, cookie); in check_watching_message()
231 LaunchContext context; in WatchingTest2() local
237 CHK(context(caller1, appType1, &team1) == B_OK); in WatchingTest2()
238 context.WaitForMessage(team1, MSG_READY_TO_RUN); in WatchingTest2()
245 CHK(context.CheckNextMessage(caller1, team1, cookie1, MSG_STARTED)); in WatchingTest2()
246 CHK(context.CheckMainArgsMessage(caller1, team1, cookie1, &ref1, false)); in WatchingTest2()
247 CHK(context.CheckNextMessage(caller1, team1, cookie1, MSG_READY_TO_RUN)); in WatchingTest2()
253 CHK(context(caller2, appType2, &team2) == B_OK); in WatchingTest2()
254 context.WaitForMessage(team2, MSG_READY_TO_RUN); in WatchingTest2()
255 BMessenger target2(context.AppMessengerFor(team2)); in WatchingTest2()
261 CHK(context.CheckNextMessage(caller2, team2, cookie2, MSG_STARTED)); in WatchingTest2()
262 CHK(context.CheckMainArgsMessage(caller2, team2, cookie2, &ref2, false)); in WatchingTest2()
263 CHK(context.CheckNextMessage(caller2, team2, cookie2, MSG_READY_TO_RUN)); in WatchingTest2()
265 check_watching_message(context, team1, cookie1, appInfo2, in WatchingTest2()
271 CHK(context(caller3, appType3, &team3) == B_OK); in WatchingTest2()
272 context.WaitForMessage(team3, MSG_READY_TO_RUN); in WatchingTest2()
278 CHK(context.CheckNextMessage(caller3, team3, cookie3, MSG_STARTED)); in WatchingTest2()
279 CHK(context.CheckMainArgsMessage(caller3, team3, cookie3, &ref3, false)); in WatchingTest2()
280 CHK(context.CheckNextMessage(caller3, team3, cookie3, MSG_READY_TO_RUN)); in WatchingTest2()
282 check_watching_message(context, team2, cookie2, appInfo3, in WatchingTest2()
285 check_watching_message(context, team1, cookie1, appInfo3, in WatchingTest2()
291 CHK(context(caller4, appType4, &team4) == B_OK); in WatchingTest2()
292 context.WaitForMessage(team4, MSG_READY_TO_RUN); in WatchingTest2()
297 CHK(context.CheckNextMessage(caller4, team4, cookie4, MSG_STARTED)); in WatchingTest2()
298 CHK(context.CheckMainArgsMessage(caller4, team4, cookie4, &ref4, false)); in WatchingTest2()
299 CHK(context.CheckNextMessage(caller4, team4, cookie4, MSG_READY_TO_RUN)); in WatchingTest2()
303 check_watching_message(context, team2, cookie2, appInfo4, in WatchingTest2()
306 check_watching_message(context, team1, cookie1, appInfo4, in WatchingTest2()
309 context.TerminateApp(team4); in WatchingTest2()
311 check_watching_message(context, team3, cookie3, appInfo4, in WatchingTest2()
316 check_watching_message(context, team1, cookie1, appInfo4, in WatchingTest2()
321 context.TerminateApp(team2); in WatchingTest2()
324 check_watching_message(context, team3, cookie3, appInfo2, in WatchingTest2()
329 context.TerminateApp(team3); in WatchingTest2()
341 context.Terminate(); in WatchingTest2()
343 CHK(context.CheckNextMessage(caller1, team1, cookie1, MSG_QUIT_REQUESTED)); in WatchingTest2()
344 CHK(context.CheckNextMessage(caller1, team1, cookie1, MSG_TERMINATED)); in WatchingTest2()
346 CHK(context.CheckNextMessage(caller2, team2, cookie2, MSG_QUIT_REQUESTED)); in WatchingTest2()
347 CHK(context.CheckNextMessage(caller2, team2, cookie2, MSG_TERMINATED)); in WatchingTest2()
349 CHK(context.CheckNextMessage(caller3, team3, cookie3, MSG_QUIT_REQUESTED)); in WatchingTest2()
350 CHK(context.CheckNextMessage(caller3, team3, cookie3, MSG_TERMINATED)); in WatchingTest2()
352 CHK(context.CheckNextMessage(caller4, team4, cookie4, MSG_QUIT_REQUESTED)); in WatchingTest2()
353 CHK(context.CheckNextMessage(caller4, team4, cookie4, MSG_TERMINATED)); in WatchingTest2()
366 LaunchContext context; in WatchingTest3() local
372 CHK(context(caller1, appType1, &team1) == B_OK); in WatchingTest3()
373 context.WaitForMessage(team1, MSG_READY_TO_RUN); in WatchingTest3()
380 CHK(context.CheckNextMessage(caller1, team1, cookie1, MSG_STARTED)); in WatchingTest3()
381 CHK(context.CheckMainArgsMessage(caller1, team1, cookie1, &ref1, false)); in WatchingTest3()
382 CHK(context.CheckNextMessage(caller1, team1, cookie1, MSG_READY_TO_RUN)); in WatchingTest3()
390 CHK(context(caller2, appType2, &team2) == B_OK); in WatchingTest3()
391 context.WaitForMessage(team2, MSG_READY_TO_RUN); in WatchingTest3()
392 BMessenger target2(context.AppMessengerFor(team2)); in WatchingTest3()
398 CHK(context.CheckNextMessage(caller2, team2, cookie2, MSG_STARTED)); in WatchingTest3()
399 CHK(context.CheckMainArgsMessage(caller2, team2, cookie2, &ref2, false)); in WatchingTest3()
400 CHK(context.CheckNextMessage(caller2, team2, cookie2, MSG_READY_TO_RUN)); in WatchingTest3()
409 CHK(context(caller3, appType3, &team3) == B_OK); in WatchingTest3()
410 context.WaitForMessage(team3, MSG_READY_TO_RUN); in WatchingTest3()
415 CHK(context.CheckNextMessage(caller3, team3, cookie3, MSG_STARTED)); in WatchingTest3()
416 CHK(context.CheckMainArgsMessage(caller3, team3, cookie3, &ref3, false)); in WatchingTest3()
417 CHK(context.CheckNextMessage(caller3, team3, cookie3, MSG_READY_TO_RUN)); in WatchingTest3()
419 check_watching_message(context, team2, cookie2, appInfo3, in WatchingTest3()
424 context.TerminateApp(team3); in WatchingTest3()
430 check_watching_message(context, team1, cookie1, appInfo3, in WatchingTest3()
433 context.TerminateApp(team2); in WatchingTest3()
436 check_watching_message(context, team1, cookie1, appInfo2, in WatchingTest3()
439 context.Terminate(); in WatchingTest3()
441 CHK(context.CheckNextMessage(caller1, team1, cookie1, MSG_QUIT_REQUESTED)); in WatchingTest3()
442 CHK(context.CheckNextMessage(caller1, team1, cookie1, MSG_TERMINATED)); in WatchingTest3()
444 CHK(context.CheckNextMessage(caller2, team2, cookie2, MSG_QUIT_REQUESTED)); in WatchingTest3()
445 CHK(context.CheckNextMessage(caller2, team2, cookie2, MSG_TERMINATED)); in WatchingTest3()
447 CHK(context.CheckNextMessage(caller3, team3, cookie3, MSG_QUIT_REQUESTED)); in WatchingTest3()
448 CHK(context.CheckNextMessage(caller3, team3, cookie3, MSG_TERMINATED)); in WatchingTest3()