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

Issue 2553083002: predictors: Add browsertest that tests prefetching. (Closed)

Created:
4 years ago by alexilin
Modified:
4 years ago
Reviewers:
Benoit L
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

predictors: Add browsertest that tests prefetching. Before this we only had tests for filling predictor database. This CL adds test that prefills database and then activates prefetching on the same web page. Then it checks that cache actually has been populated by prefetched resources. BUG=650253 Review-Url: https://codereview.chromium.org/2553083002 Committed: https://chromium.googlesource.com/chromium/src/+/984fbd599358277897f5ad24e1d51bd56678a487

Patch Set 1 #

Total comments: 3

Patch Set 2 : Make all tests prefetching. (and rebase) #

Total comments: 12

Patch Set 3 : Nits. #

Patch Set 4 : Minus one GURL copy. #

Patch Set 5 : Fix TODO comment. #

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -33 lines) Patch
M chrome/browser/predictors/resource_prefetch_predictor.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc View 1 2 3 4 5 18 chunks +94 lines, -32 lines 0 comments Download
M chrome/browser/predictors/resource_prefetcher_manager.cc View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (9 generated)
alexilin
Hi! This is a draft of a test for prefetching. I'm waiting for your comments ...
4 years ago (2016-12-06 12:44:17 UTC) #2
alexilin
Hi, We want to test prefetching also for various html pages. So we had two ...
4 years ago (2016-12-16 15:52:29 UTC) #3
Benoit L
https://codereview.chromium.org/2553083002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2553083002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode79 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:79: // ResourcePrefetchPredictor is initialized before observer creation. nit: before ...
4 years ago (2016-12-19 12:32:00 UTC) #4
alexilin
Top-level comment: Is it okay to rename all these tests (as I did)? At first ...
4 years ago (2016-12-19 12:58:09 UTC) #5
alexilin
https://codereview.chromium.org/2553083002/diff/20001/chrome/browser/predictors/resource_prefetcher_manager.cc File chrome/browser/predictors/resource_prefetcher_manager.cc (right): https://codereview.chromium.org/2553083002/diff/20001/chrome/browser/predictors/resource_prefetcher_manager.cc#newcode85 chrome/browser/predictors/resource_prefetcher_manager.cc:85: const GURL main_frame_url = resource_prefetcher->main_frame_url(); On 2016/12/19 12:58:09, alexilin ...
4 years ago (2016-12-19 15:03:42 UTC) #6
Benoit L
lgtm with one minor comment about a comment. https://codereview.chromium.org/2553083002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2553083002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode283 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:283: predictor_->StartPrefetching(main_frame_url, ...
4 years ago (2016-12-19 15:19:06 UTC) #7
alexilin
Committing is coming... https://codereview.chromium.org/2553083002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2553083002/diff/20001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode518 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:518: // TestLearningAndPrefetching(GetURL(kRedirectPath)); On 2016/12/19 15:19:05, Benoit ...
4 years ago (2016-12-19 15:36:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2553083002/80001
4 years ago (2016-12-19 15:36:42 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/10409) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-19 15:38:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2553083002/100001
4 years ago (2016-12-19 16:45:39 UTC) #16
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/c7c1e0389fa3b0d68e9b940b0929e2e3dd4bde9a Cr-Commit-Position: refs/heads/master@{#439494}
4 years ago (2016-12-19 17:33:36 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-19 17:33:46 UTC) #21
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/984fbd599358277897f5ad24e1d5...

Powered by Google App Engine
This is Rietveld 408576698