|
|
Created:
4 years ago by jam Modified:
4 years ago 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. |
DescriptionFix 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
Messages
Total messages: 47 (41 generated)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
Description was changed from ========== foo BUG= ========== to ========== foo BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ==========
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Patchset #1 (id:1) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
Description was changed from ========== foo BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation ========== to ========== 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 RenderViewHost test harness fakes navigations but doesn't handle multiple loads per RenderFrameHost very well. Additionally, the specific test harness code also has issues in that it doesn't use the pending RFH. The easiest solution here is to split the one unit test into three. BUG=673806 ==========
jam@chromium.org changed reviewers: + scottmg@chromium.org
Description was changed from ========== 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 RenderViewHost test harness fakes navigations but doesn't handle multiple loads per RenderFrameHost very well. Additionally, the specific test harness code also has issues in that it doesn't use the pending RFH. The easiest solution here is to split the one unit test into three. BUG=673806 ========== to ========== 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 RenderViewHost test harness fakes navigations but doesn't handle multiple loads per RenderFrameHost very well. Additionally, the specific test harness code also has issues in that it doesn't use the pending 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 ==========
The CQ bit was checked by jam@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
arthursonzogni@chromium.org changed reviewers: + arthursonzogni@chromium.org
I read diagonally because scottmg will do the review and I am not a committer yet. Some nits: https://codereview.chromium.org/2574953002/diff/120001/chrome/browser/net/net... File chrome/browser/net/net_error_tab_helper_unittest.cc (right): https://codereview.chromium.org/2574953002/diff/120001/chrome/browser/net/net... chrome/browser/net/net_error_tab_helper_unittest.cc:394: // once. So workaround it by puting each test case in a separate test. Nit: s/don't/doesn't Nit: s/puting/putting
lgtm
Description was changed from ========== 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 RenderViewHost test harness fakes navigations but doesn't handle multiple loads per RenderFrameHost very well. Additionally, the specific test harness code also has issues in that it doesn't use the pending 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 ========== to ========== 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 ==========
The CQ bit was checked by jam@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 120001, "attempt_start_ts": 1481821928832040, "parent_rev": "213ec51d612cb9ba5267bed88b8adb4b92052c88", "commit_rev": "2d882022131ed9210ed18575d20cc4c3799c56b0"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 Review-Url: https://codereview.chromium.org/2574953002 ==========
Message was sent while issue was closed.
Committed patchset #6 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== 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 Review-Url: https://codereview.chromium.org/2574953002 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/0265e75fa260668610c0b708b91aff6dfcdbfc00 Cr-Commit-Position: refs/heads/master@{#438855} |