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

Issue 2574953002: Fix Android unit_tests failures with PlzNavigate. (Closed)

Created:
4 years ago by jam
Modified:
4 years ago
Reviewers:
arthursonzogni, scottmg
CC:
chromium-reviews, jam, Randy Smith (Not in Mondays), loading-reviews+metrics_chromium.org, csharrison+watch_chromium.org, darin-cc_chromium.org, loading-reviews_chromium.org, mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Android unit_tests failures with PlzNavigate. The test failures all are because on Android ChromeContentBrowserClient::CreateThrottlesForNavigation returns a throttle that defers a request. The test harness assumed they're always synchronous. Fix by waiting on the callback to be run asynchronously. The other minor fix is to Android specific NetErrorTabHelperTest tests. The RenderFrameHost test harness fakes navigations but doesn't handle multiple loads per RenderFrameHost very well (specifically, if a pending or speculative RFH is used). Fixing this would necessitate moving a bunch of methods from RenderFrameHostTester to WebContentsTester and updating all the tests. Additionally, the specific test harness code in NetErrorTabHelperTest has issues in that it doesn't use the pending/speculative RFH. The easiest solution here is to split the one unit test into three. This fixes the 225 failing unit_tests on Android. BUG=673806 Committed: https://crrev.com/0265e75fa260668610c0b708b91aff6dfcdbfc00 Cr-Commit-Position: refs/heads/master@{#438855}

Patch Set 1 : a #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : more fixes #

Patch Set 5 : fix last test #

Patch Set 6 : fix last test and cleanup #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -12 lines) Patch
M chrome/browser/net/net_error_tab_helper_unittest.cc View 1 2 3 4 5 2 chunks +25 lines, -12 lines 1 comment Download
M content/browser/frame_host/navigation_request.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (41 generated)
jam
4 years ago (2016-12-15 00:38:03 UTC) #34
arthursonzogni
I read diagonally because scottmg will do the review and I am not a committer ...
4 years ago (2016-12-15 16:32:39 UTC) #38
scottmg
lgtm
4 years ago (2016-12-15 17:02:32 UTC) #39
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/2574953002/120001
4 years ago (2016-12-15 17:12:41 UTC) #42
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years ago (2016-12-15 17:18:18 UTC) #45
commit-bot: I haz the power
4 years ago (2016-12-15 17:19:54 UTC) #47
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0265e75fa260668610c0b708b91aff6dfcdbfc00
Cr-Commit-Position: refs/heads/master@{#438855}

Powered by Google App Engine
This is Rietveld 408576698