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

Issue 2283473002: Fixes for the failing URLLoaderFactoryImplTest content_unittests with PlzNavigate enabled (Closed)

Created:
4 years, 3 months ago by ananta
Modified:
4 years, 3 months ago
Reviewers:
clamy, jam
CC:
chromium-reviews, loading-reviews_chromium.org, jam, darin-cc_chromium.org, Randy Smith (Not in Mondays), mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes for the failing URLLoaderFactoryImplTest content_unittests with PlzNavigate enabled The main resource requests which the content_unittests were making using mojo were failing in RDHI because the renderer is not supposed to make main resource requests with PlzNavigate. Worked around this by setting the process type to PROCESS_TYPE_UNKNOWN in ResourceMessageFilter for these unittests and added a check in the related code to only enforce these checks for PROCESS_TYPE_RENDERER. The other change was in the TestURLLoaderClient methods which run the message loop waiting for states like response received, body received etc. For some reason, with PlzNavigate enabled the response for the body arrives immediately following the header response causing the next wait to just block. The fixes were to see if already have a response_body_ in the TestURLLoaderClient::RunUntilResponseBodyArrived method and return immediately and a similar check in TestURLLoaderClient::RunUntilComplete() BUG=439423 Committed: https://crrev.com/6c452f51321725e3831cdcf5747cd46623d98b26 Cr-Commit-Position: refs/heads/master@{#414640}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comment and fix bot redness #

Total comments: 4

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -6 lines) Patch
M content/browser/loader/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 chunks +10 lines, -5 lines 0 comments Download
M content/browser/loader/test_url_loader_client.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl_unittest.cc View 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 20 (11 generated)
ananta
4 years, 3 months ago (2016-08-25 18:57:32 UTC) #2
ananta
+clamy
4 years, 3 months ago (2016-08-25 19:06:33 UTC) #4
clamy
Thanks! It does seem to cause a bit of failures though. Could you have a ...
4 years, 3 months ago (2016-08-25 22:17:56 UTC) #9
ananta
The tests were crashing due to a deref of a null filter_ ptr in RDHI. ...
4 years, 3 months ago (2016-08-25 22:49:15 UTC) #11
clamy
Thanks! Lgtm with nits. https://codereview.chromium.org/2283473002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2283473002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1285 content/browser/loader/resource_dispatcher_host_impl.cc:1285: // The process_type check is ...
4 years, 3 months ago (2016-08-25 23:14:04 UTC) #13
ananta
https://codereview.chromium.org/2283473002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2283473002/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1285 content/browser/loader/resource_dispatcher_host_impl.cc:1285: // The process_type check is to ensure that we ...
4 years, 3 months ago (2016-08-25 23:39:20 UTC) #14
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/2283473002/40001
4 years, 3 months ago (2016-08-26 00:36:29 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-26 02:57:05 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 03:04:00 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6c452f51321725e3831cdcf5747cd46623d98b26
Cr-Commit-Position: refs/heads/master@{#414640}

Powered by Google App Engine
This is Rietveld 408576698