unittest framework for service worker

21 views
Skip to first unread message

Jack Hsieh

unread,
Apr 28, 2022, 9:38:56 PM4/28/22
to service-worker-discuss
I am trying to add a new service into service worker and I want to know if content/browser/service_worker provides any framework to start a service worker in unit test and have it all the way down to content::RenderProcessHostImpl.

Currently I found an example in :
TEST_F(EmbeddedWorkerInstanceTest, StartAndStop)

That can exercise the path of "EmbeddedWorkerInstance->MockRenderProcessHost". But I just wonder if there is any framework for unit tests to do "EmbeddedWorkerInstance->RenderProcessHostImpl"?

Reply all
Reply to author
Forward
0 new messages