Chromium Code Reviews
DescriptionPrerenderingLoader initial integration with PrerenderManager/PrerenderHandle and make it unit-testable.
[Note: this CL landed and was reverted per test failure reported in issue 614699.]
It proved challenging to write unittests wrt mocking PrerenderManager and/or PrerenderHandler and be able to create a stub PrerenderHandler without touching the prerender stack code so this CL takes the approach of adding an adapter between the Loader and prerender stack calls so that they can be intercepted for testing.
BTW, PrerenderingLoader is actually the "BackgroundLoader" of go/chrome-background-loading
TBR=fgorski@chromium.org,petewil@chromium.org,pasko@chromium.org,gabadie@chromium.org
BUG=601173, 614699
Committed: https://crrev.com/8ed74fd7c401a1ff9a5a57c270409e0f66f6d3ce
Cr-Commit-Position: refs/heads/master@{#395485}
patch from issue 1968593002 at patchset 420001 (http://crrev.com/1968593002#ps420001)
Committed: https://crrev.com/bd2f237c4acbdd9e0f6495b688f2c3da86127cac
Cr-Commit-Position: refs/heads/master@{#396191}
Patch Set 1 #Patch Set 2 : Adds mock adapter member initialization in constructor #Messages
Total messages: 11 (4 generated)
|