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

Issue 2484323002: Add a NetworkQualityEstimator to TestURLRequestContext. (Closed)

Created:
4 years, 1 month ago by mmenke
Modified:
4 years, 1 month ago
Reviewers:
palmer, Ted C, tbansal1
CC:
cbentzel+watch_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a NetworkQualityEstimator to TestURLRequestContext. This was inspired by a bug in exercised NetworkQualityEstimator NQE codepath, though this CL would not have caught the issue. BUG=663456 Committed: https://crrev.com/5ce3e1f8fef0f96ae28a09ac0aba2dc49802f9ee Cr-Commit-Position: refs/heads/master@{#432277}

Patch Set 1 #

Patch Set 2 : Bleh #

Patch Set 3 : Fix case the NQE is set before init() #

Patch Set 4 : Fix tests #

Total comments: 6

Patch Set 5 : Fix init order #

Patch Set 6 : Update comments, fix Android tests #

Patch Set 7 : Fix one NQE test #

Patch Set 8 : Update comments, fix Android tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -51 lines) Patch
M chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc View 1 2 3 4 5 chunks +9 lines, -3 lines 0 comments Download
M content/browser/android/url_request_content_job_unittest.cc View 1 2 3 4 5 4 chunks +5 lines, -7 lines 0 comments Download
M net/http/http_transaction_test_util.h View 2 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_transaction_test_util.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M net/nqe/network_quality_estimator_unittest.cc View 1 2 3 4 5 6 7 14 chunks +78 lines, -33 lines 0 comments Download
M net/url_request/url_request_test_util.h View 2 chunks +3 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 5 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 53 (37 generated)
mmenke
tbansal: Does this seem reasonable? The NQE tests aren't fully setting up the NQE, so ...
4 years, 1 month ago (2016-11-14 20:15:02 UTC) #17
mmenke
https://codereview.chromium.org/2484323002/diff/60001/chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc File chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc (right): https://codereview.chromium.org/2484323002/diff/60001/chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc#newcode341 chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc:341: content::TestBrowserThreadBundle::IO_MAINLOOP); These are because the NQE expects a MessageLoop ...
4 years, 1 month ago (2016-11-14 20:16:38 UTC) #18
tbansal1
https://codereview.chromium.org/2484323002/diff/60001/net/url_request/url_request_test_util.cc File net/url_request/url_request_test_util.cc (right): https://codereview.chromium.org/2484323002/diff/60001/net/url_request/url_request_test_util.cc#newcode145 net/url_request/url_request_test_util.cc:145: params.socket_performance_watcher_factory = Currently, the problem is that in some ...
4 years, 1 month ago (2016-11-14 20:26:01 UTC) #19
mmenke
https://codereview.chromium.org/2484323002/diff/60001/net/url_request/url_request_test_util.cc File net/url_request/url_request_test_util.cc (right): https://codereview.chromium.org/2484323002/diff/60001/net/url_request/url_request_test_util.cc#newcode145 net/url_request/url_request_test_util.cc:145: params.socket_performance_watcher_factory = On 2016/11/14 20:26:01, tbansal1 wrote: > Currently, ...
4 years, 1 month ago (2016-11-14 20:29:52 UTC) #22
mmenke
On 2016/11/14 20:29:52, mmenke wrote: > https://codereview.chromium.org/2484323002/diff/60001/net/url_request/url_request_test_util.cc > File net/url_request/url_request_test_util.cc (right): > > https://codereview.chromium.org/2484323002/diff/60001/net/url_request/url_request_test_util.cc#newcode145 > ...
4 years, 1 month ago (2016-11-14 20:31:56 UTC) #23
tbansal1
lgtm. Thanks for doing this. If you have problems fixing NQE tests, please let me ...
4 years, 1 month ago (2016-11-14 20:39:27 UTC) #26
mmenke
https://codereview.chromium.org/2484323002/diff/60001/net/nqe/network_quality_estimator_unittest.cc File net/nqe/network_quality_estimator_unittest.cc (right): https://codereview.chromium.org/2484323002/diff/60001/net/nqe/network_quality_estimator_unittest.cc#newcode176 net/nqe/network_quality_estimator_unittest.cc:176: // TODO(mmenke): Fix that? On 2016/11/14 20:39:27, tbansal1 wrote: ...
4 years, 1 month ago (2016-11-14 20:43:02 UTC) #27
tbansal1
On 2016/11/14 20:43:02, mmenke wrote: > https://codereview.chromium.org/2484323002/diff/60001/net/nqe/network_quality_estimator_unittest.cc > File net/nqe/network_quality_estimator_unittest.cc (right): > > https://codereview.chromium.org/2484323002/diff/60001/net/nqe/network_quality_estimator_unittest.cc#newcode176 > ...
4 years, 1 month ago (2016-11-14 21:26:59 UTC) #28
mmenke
palmer: Please review chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc (TestURLRequestContext must now be created on a thread with a message ...
4 years, 1 month ago (2016-11-15 15:41:13 UTC) #42
mmenke
Oops, let's try that again, making things more legible. [+palmer]: Please review chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc (TestURLRequestContext must ...
4 years, 1 month ago (2016-11-15 15:42:15 UTC) #43
palmer
lgtm
4 years, 1 month ago (2016-11-15 19:53:04 UTC) #44
Ted C
On 2016/11/15 19:53:04, palmer wrote: > lgtm lgtm
4 years, 1 month ago (2016-11-15 22:26:13 UTC) #45
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/2484323002/140001
4 years, 1 month ago (2016-11-15 22:29:52 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-15 22:46:03 UTC) #50
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/5ce3e1f8fef0f96ae28a09ac0aba2dc49802f9ee Cr-Commit-Position: refs/heads/master@{#432277}
4 years, 1 month ago (2016-11-15 22:51:01 UTC) #52
eroman
4 years, 1 month ago (2016-11-17 02:12:23 UTC) #53
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2506303002/ by eroman@chromium.org.

The reason for reverting is: May be the cause of increase net_unittests flake,
speculatively reverting (see comment #20)

BUG=665686.

Powered by Google App Engine
This is Rietveld 408576698