[Loader] Add unit tests for Document/WorkerThreadableLoader
This CL tests how ThreadableLoaderClient methods are called from
DocumentThreadableLoader and WorkerThreadableLoader, including the cases
where ThreadableLoader is canceled or destructed in the
ThreadableLoaderClient method calls.
This CL ignores a presubmit warning:
"You should probably be using one of the FrameTestHelpers::(re)load*
functions instead of serveAsynchronousMockedRequests()"
in ThreadableLoaderTest.cpp, because this is not a frame loading test.
BUG=532364, 515850
Review URL: https://codereview.chromium.org/1257343003
Cr-Commit-Position: refs/heads/master@{#382156}
5 files changed