Lines Matching refs:helper

237   TestHelper helper(&task_runner);  in TEST_F()  local
238 helper.StartServiceIfRequired(); in TEST_F()
246 helper.ConnectConsumer(); in TEST_F()
247 helper.WaitForConsumerConnect(); in TEST_F()
261 helper.StartTracing(trace_config); in TEST_F()
262 helper.WaitForTracingDisabled(); in TEST_F()
264 helper.ReadData(); in TEST_F()
265 helper.WaitForReadData(); in TEST_F()
267 const auto& packets = helper.trace(); in TEST_F()
280 TestHelper helper(&task_runner); in TEST_F() local
281 helper.StartServiceIfRequired(); in TEST_F()
289 helper.ConnectConsumer(); in TEST_F()
290 helper.WaitForConsumerConnect(); in TEST_F()
303 helper.StartTracing(trace_config); in TEST_F()
309 helper.FlushAndWait(kTestTimeoutMs); in TEST_F()
316 helper.FlushAndWait(kTestTimeoutMs); in TEST_F()
318 helper.DisableTracing(); in TEST_F()
319 helper.WaitForTracingDisabled(kTestTimeoutMs); in TEST_F()
321 helper.ReadData(); in TEST_F()
322 helper.WaitForReadData(); in TEST_F()
325 for (const auto& packet : helper.trace()) { in TEST_F()
338 TestHelper helper(&task_runner); in TEST_F() local
339 helper.StartServiceIfRequired(); in TEST_F()
349 helper.ConnectConsumer(); in TEST_F()
350 helper.WaitForConsumerConnect(); in TEST_F()
366 helper.StartTracing(trace_config); in TEST_F()
367 helper.WaitForTracingDisabled(); in TEST_F()
369 helper.ReadData(); in TEST_F()
370 helper.WaitForReadData(); in TEST_F()
372 const auto& packets = helper.trace(); in TEST_F()
392 TestHelper helper(&task_runner); in TEST_F() local
393 helper.StartServiceIfRequired(); in TEST_F()
394 helper.ConnectFakeProducer(); in TEST_F()
395 helper.ConnectConsumer(); in TEST_F()
396 helper.WaitForConsumerConnect(); in TEST_F()
414 helper.StartTracing(trace_config); in TEST_F()
415 helper.WaitForTracingDisabled(); in TEST_F()
417 helper.ReadData(); in TEST_F()
418 helper.WaitForReadData(); in TEST_F()
420 const auto& packets = helper.trace(); in TEST_F()
433 TestHelper helper(&task_runner); in TEST_F() local
434 helper.StartServiceIfRequired(); in TEST_F()
435 helper.ConnectFakeProducer(); in TEST_F()
436 helper.ConnectConsumer(); in TEST_F()
437 helper.WaitForConsumerConnect(); in TEST_F()
455 helper.StartTracing(trace_config); in TEST_F()
456 helper.WaitForTracingDisabled(); in TEST_F()
458 helper.ReadData(); in TEST_F()
459 helper.WaitForReadData(); in TEST_F()
461 const auto& packets = helper.trace(); in TEST_F()
488 TestHelper helper(&task_runner); in TEST_F() local
489 helper.StartServiceIfRequired(); in TEST_F()
490 auto* fake_producer = helper.ConnectFakeProducer(); in TEST_F()
491 helper.ConnectConsumer(); in TEST_F()
492 helper.WaitForConsumerConnect(); in TEST_F()
493 helper.StartTracing(trace_config); in TEST_F()
496 helper.DetachConsumer("key"); in TEST_F()
499 helper.WaitForProducerEnabled(); in TEST_F()
501 fake_producer->ProduceEventBatch(helper.WrapTask(on_data_written)); in TEST_F()
505 helper.ConnectConsumer(); in TEST_F()
506 helper.WaitForConsumerConnect(); in TEST_F()
507 helper.AttachConsumer("key"); in TEST_F()
509 helper.DisableTracing(); in TEST_F()
510 helper.WaitForTracingDisabled(); in TEST_F()
512 helper.ReadData(); in TEST_F()
513 helper.WaitForReadData(); in TEST_F()
514 const auto& packets = helper.trace(); in TEST_F()
535 TestHelper helper(&task_runner); in TEST_F() local
536 helper.StartServiceIfRequired(); in TEST_F()
537 helper.ConnectFakeProducer(); in TEST_F()
538 helper.ConnectConsumer(); in TEST_F()
539 helper.WaitForConsumerConnect(); in TEST_F()
542 helper.StartTracing(trace_config, std::move(pipe_pair.wr)); in TEST_F()
545 helper.DetachConsumer("key"); in TEST_F()
557 helper.ConnectConsumer(); in TEST_F()
558 helper.WaitForConsumerConnect(); in TEST_F()
559 EXPECT_FALSE(helper.AttachConsumer("key")); in TEST_F()
669 TestHelper helper(&task_runner); in TEST_F() local
670 helper.StartServiceIfRequired(); in TEST_F()
671 auto* fake_producer = helper.ConnectFakeProducer(); in TEST_F()
682 helper.WaitForProducerSetup(); in TEST_F()
686 helper.WaitForProducerEnabled(); in TEST_F()
688 fake_producer->ProduceEventBatch(helper.WrapTask(on_data_written)); in TEST_F()
746 TestHelper helper(&task_runner); in TEST_F() local
747 helper.StartServiceIfRequired(); in TEST_F()
748 auto* fake_producer = helper.ConnectFakeProducer(); in TEST_F()
760 helper.WaitForProducerEnabled(); in TEST_F()
764 fake_producer->ProduceEventBatch(helper.WrapTask(on_data_written)); in TEST_F()
832 TestHelper helper(&task_runner); in TEST_F() local
833 helper.StartServiceIfRequired(); in TEST_F()
834 auto* fake_producer = helper.ConnectFakeProducer(); in TEST_F()
881 TestHelper helper(&task_runner); in TEST_F() local
882 helper.StartServiceIfRequired(); in TEST_F()
883 auto* fake_producer = helper.ConnectFakeProducer(); in TEST_F()
895 helper.WaitForProducerEnabled(); in TEST_F()
899 fake_producer->ProduceEventBatch(helper.WrapTask(on_data_written)); in TEST_F()
975 TestHelper helper(&task_runner); in TEST_F() local
976 helper.StartServiceIfRequired(); in TEST_F()
977 auto* fake_producer = helper.ConnectFakeProducer(); in TEST_F()