Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Issue 2015603002: PrerenderingLoader initial integration with PrerenderManager/PrerenderHandle and make it unit-testa… (Closed)

Created:
4 years, 6 months ago by dougarnett
Modified:
4 years, 6 months ago
CC:
chromium-reviews, davidben+watch_chromium.org, cbentzel+watch_chromium.org, romax+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, gavinp+prer_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PrerenderingLoader 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+792 lines, -60 lines) Patch
A chrome/browser/android/offline_pages/prerender_adapter.h View 1 chunk +106 lines, -0 lines 0 comments Download
A chrome/browser/android/offline_pages/prerender_adapter.cc View 1 chunk +103 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader.h View 2 chunks +81 lines, -8 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader.cc View 1 chunk +150 lines, -9 lines 0 comments Download
A chrome/browser/android/offline_pages/prerendering_loader_unittest.cc View 1 1 chunk +293 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.cc View 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc View 5 chunks +18 lines, -9 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/background/offliner.h View 1 chunk +9 lines, -8 lines 0 comments Download
M components/offline_pages/background/request_coordinator.h View 3 chunks +4 lines, -4 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 3 chunks +11 lines, -10 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 3 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
dougarnett
Working on re-landing the PrerenderingLoader change. Seems to be an issue with not initializing some ...
4 years, 6 months ago (2016-05-25 19:45:40 UTC) #2
Pete Williamson
lgtm - All changes from the original patch look good to me.
4 years, 6 months ago (2016-05-25 19:50:03 UTC) #3
dougarnett
Fyi, waiting for the asan-clang-phone trybot to start and run. It shows as scheduled. Looks ...
4 years, 6 months ago (2016-05-25 23:01:16 UTC) #4
pasko
lgtm On 2016/05/25 23:01:16, dougarnett wrote: > Fyi, waiting for the asan-clang-phone trybot to start ...
4 years, 6 months ago (2016-05-26 10:54:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2015603002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2015603002/20001
4 years, 6 months ago (2016-05-26 14:28:57 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-05-26 16:00:29 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-05-26 16:02:15 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bd2f237c4acbdd9e0f6495b688f2c3da86127cac
Cr-Commit-Position: refs/heads/master@{#396191}

Powered by Google App Engine
This is Rietveld 408576698