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

Issue 1151973005: Bring RFH/RVH unit tests closer to reality of how RF/RV are initialized (Closed)

Created:
5 years, 7 months ago by nasko
Modified:
5 years, 6 months ago
Reviewers:
ncarter (slow), bengr, sky
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bring RFH/RVH unit tests closer to reality of how RF/RV are initialized BUG=357747 TEST=all unit tests continue passing TBR=sky@chromium.org Committed: https://crrev.com/c88002d1c4dc328fbe519dac9a88ba00396836b4 Cr-Commit-Position: refs/heads/master@{#331894}

Patch Set 1 #

Patch Set 2 : Fix IsRenderFrameLive to be independent of RenderViewHost. #

Total comments: 16

Patch Set 3 : Fixes based on Nick's review. #

Patch Set 4 : Rebase on ToT. #

Patch Set 5 : Fix WebContentsImplTest.ShowInterstitialFromBrowserNewNavigationProceed #

Patch Set 6 : Fix SafeBrowsingBlockingPageTest.NavigatingBackAndForth #

Patch Set 7 : Fix DataReductionProxyDebugBlockingPageTest.NavigatingBackAndForth (android) #

Patch Set 8 : Add workaround to <webview> bug (492830) #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -28 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/frame_tree_unittest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -6 lines 2 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 6 7 5 chunks +11 lines, -12 lines 0 comments Download
M content/test/test_render_view_host.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/test/test_web_contents.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
nasko
Hey Nick, What do you think of this as an approach to make unit tests ...
5 years, 7 months ago (2015-05-22 23:18:08 UTC) #2
ncarter (slow)
https://codereview.chromium.org/1151973005/diff/20001/content/browser/frame_host/frame_tree_unittest.cc File content/browser/frame_host/frame_tree_unittest.cc (right): https://codereview.chromium.org/1151973005/diff/20001/content/browser/frame_host/frame_tree_unittest.cc#newcode357 content/browser/frame_host/frame_tree_unittest.cc:357: "RenderFrameDeleted(1) -> 1*: []\n" Hooray! https://codereview.chromium.org/1151973005/diff/20001/content/browser/web_contents/web_contents_impl_unittest.cc File content/browser/web_contents/web_contents_impl_unittest.cc (right): ...
5 years, 7 months ago (2015-05-26 21:44:15 UTC) #3
nasko
Some fixes and responses. Now that I know this approach makes sense to you as ...
5 years, 7 months ago (2015-05-26 22:25:49 UTC) #4
ncarter (slow)
lgtm Took another pass, no additional comments.
5 years, 7 months ago (2015-05-27 20:57:22 UTC) #5
nasko
Adding OWNERS reviewers: sky@ - chrome/browser/safe_browsing/ bengr@ - components/data_reduction_proxy/content/browser/
5 years, 6 months ago (2015-05-28 21:44:04 UTC) #7
bengr
data_reduction_proxy lgtm
5 years, 6 months ago (2015-05-28 21:58:22 UTC) #8
ncarter (slow)
https://codereview.chromium.org/1151973005/diff/130001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1151973005/diff/130001/content/browser/frame_host/render_frame_host_impl.cc#newcode654 content/browser/frame_host/render_frame_host_impl.cc:654: is_live = render_view_host_->IsRenderViewLive(); If we're preserving the behavior of ...
5 years, 6 months ago (2015-05-29 00:01:19 UTC) #9
nasko
https://codereview.chromium.org/1151973005/diff/130001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1151973005/diff/130001/content/browser/frame_host/render_frame_host_impl.cc#newcode654 content/browser/frame_host/render_frame_host_impl.cc:654: is_live = render_view_host_->IsRenderViewLive(); On 2015/05/29 00:01:18, ncarter wrote: > ...
5 years, 6 months ago (2015-05-29 00:03:20 UTC) #10
nasko
TBRing sky@ because of simple/mostly mechanical change.
5 years, 6 months ago (2015-05-29 00:32:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151973005/130001
5 years, 6 months ago (2015-05-29 00:34:21 UTC) #14
commit-bot: I haz the power
Committed patchset #8 (id:130001)
5 years, 6 months ago (2015-05-29 00:38:31 UTC) #15
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/c88002d1c4dc328fbe519dac9a88ba00396836b4 Cr-Commit-Position: refs/heads/master@{#331894}
5 years, 6 months ago (2015-05-29 00:39:14 UTC) #16
Nico
5 years, 6 months ago (2015-05-30 07:03:09 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:130001) has been created in
https://codereview.chromium.org/1146403009/ by thakis@chromium.org.

The reason for reverting is: Speculative, might have caused
http://crbug.com/493584 (RlzLibTests failing in unit_tests in official builds).

Powered by Google App Engine
This is Rietveld 408576698