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

Issue 2561493003: Rework of ResourcePrefetchPredictor browser tests infrastructure. (Closed)

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

Description

Summary ----- Allows for custom comparison of results and exotic navigation setup. Details ----- - New browser tests will be needed to test edge cases. For example verifying behavior during cross tab navigation. Useful for regression with PlzNavigate. - To be able to add the test cases we need to have some more customization than what the current test framework provides. Specifically, partial comparison and new navigation types. Implemented that. BUG=650253 Committed: https://crrev.com/23b1517fb1deb148503f67f1bc9f38283f4e89a0 Cr-Commit-Position: refs/heads/master@{#437877}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Using BROWSER_TEST_NONE #

Total comments: 10

Patch Set 3 : Post-Review Modifications #

Total comments: 7

Patch Set 4 : Post-Review Modifications 2 #

Patch Set 5 : Post-Review Modifications 3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -19 lines) Patch
M chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc View 1 2 3 4 6 chunks +47 lines, -19 lines 0 comments Download

Messages

Total messages: 36 (20 generated)
ahemery
https://codereview.chromium.org/2561493003/diff/1/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2561493003/diff/1/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode131 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:131: bool match_navigation_id) New test observer parameter. If true, when ...
4 years ago (2016-12-07 14:13:02 UTC) #2
alexilin
Looks good after the second patch. I also have a couple of questions. Please add ...
4 years ago (2016-12-07 16:57:12 UTC) #5
ahemery
On 2016/12/07 16:57:12, alexilin wrote: > Looks good after the second patch. I also have ...
4 years ago (2016-12-08 11:06:00 UTC) #8
ahemery
https://codereview.chromium.org/2561493003/diff/40001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2561493003/diff/40001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode145 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:145: std::vector<ResourcePrefetchPredictor::URLRequestSummary> On 2016/12/07 16:57:12, alexilin wrote: > Probably, it ...
4 years ago (2016-12-08 11:08:45 UTC) #9
alexilin
Lgtm with tiny nit, thanks! https://codereview.chromium.org/2561493003/diff/40001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2561493003/diff/40001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode532 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:532: AddResource(GetURL(kFontPath), content::RESOURCE_TYPE_FONT_RESOURCE, On 2016/12/08 ...
4 years ago (2016-12-08 12:57:26 UTC) #10
Benoit L
https://codereview.chromium.org/2561493003/diff/80001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2561493003/diff/80001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode112 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:112: void EmptyNavigationId(NavigationID* navigation_id) { nit: I think it would ...
4 years ago (2016-12-08 15:07:44 UTC) #11
ahemery
https://codereview.chromium.org/2561493003/diff/80001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2561493003/diff/80001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode112 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:112: void EmptyNavigationId(NavigationID* navigation_id) { On 2016/12/08 15:07:44, Benoit L ...
4 years ago (2016-12-09 14:19:16 UTC) #12
Benoit L
https://codereview.chromium.org/2561493003/diff/80001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc File chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc (right): https://codereview.chromium.org/2561493003/diff/80001/chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc#newcode526 chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc:526: IN_PROC_BROWSER_TEST_F(ResourcePrefetchPredictorBrowserTest, LearningInNewTab) { On 2016/12/09 14:19:16, ahemery wrote: > ...
4 years ago (2016-12-09 14:44:01 UTC) #15
alexilin
Actually that part with partial comparison would be useful for my oncoming CL (one of ...
4 years ago (2016-12-09 14:52:09 UTC) #16
ahemery
On 2016/12/09 14:52:09, alexilin wrote: > Actually that part with partial comparison would be useful ...
4 years ago (2016-12-12 13:40:08 UTC) #22
Benoit L
Thanks! Let's land the partial comparison only, so that alexilin@ can use it in the ...
4 years ago (2016-12-12 13:56:08 UTC) #23
ahemery
As advised by Benoit, removed the navigation_id matching according to disposition for now
4 years ago (2016-12-12 14:34:17 UTC) #27
Benoit L
lgtm, thanks.
4 years ago (2016-12-12 14:37:57 UTC) #28
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/2561493003/140001
4 years ago (2016-12-12 14:45:17 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years ago (2016-12-12 15:30:26 UTC) #34
commit-bot: I haz the power
4 years ago (2016-12-12 15:32:11 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/23b1517fb1deb148503f67f1bc9f38283f4e89a0
Cr-Commit-Position: refs/heads/master@{#437877}

Powered by Google App Engine
This is Rietveld 408576698