Redirect ScriptLoader::IsReady() to PendingScript::IsReady() in unit tests
This CL makes MockScriptLoader::IsReady() just to call PendingScript::IsReady(), and mocks PendingScript::IsReady() instead. This is to remove ScriptLoader dependency from IsReady(), and in a subsequent CL [1] ScriptLoader::IsReady() is replaced with PendingScript::IsReady() This requires MockScriptLoader to have a corresponding MockPendingScript reference, and thus this CL adds MockScriptLoader::mock_pending_script_. MockScriptLoader::mock_pending_script_if_script_is_async_ will be removed in [1]. [1] https://chromium-review.googlesource.com/1053220 Bug: 842349 Change-Id: Ia61b3ccbeb175bece4add5c0a4f2a542118f0f26 Reviewed-on: https://chromium-review.googlesource.com/1041072Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Cr-Commit-Position: refs/heads/master@{#558913}
Showing
Please register or sign in to comment