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

Issue 1064413003: PlzNavigate: make RenderViewtest helper functions work (Closed)

Created:
5 years, 8 months ago by clamy
Modified:
5 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: make RenderViewtest helper functions work This CL makes it so that the helper functions used in RenderViewImpltest work with browser-side navigation enabled. This makes 20 browser tests pass. BUG=475027 Committed: https://crrev.com/5c7ede5ffccfba15c2d0752d03bc6979f1d81bae Cr-Commit-Position: refs/heads/master@{#324414}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -42 lines) Patch
M content/child/web_url_loader_impl.cc View 1 2 chunks +9 lines, -7 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 21 chunks +40 lines, -34 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
clamy
@creis, carlosk: PTAL @fdegans: FYI https://codereview.chromium.org/1064413003/diff/1/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://codereview.chromium.org/1064413003/diff/1/content/child/web_url_loader_impl.cc#newcode468 content/child/web_url_loader_impl.cc:468: DCHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch( Several tests load ...
5 years, 8 months ago (2015-04-08 14:19:30 UTC) #2
carlosk
Looking good. https://chromiumcodereview.appspot.com/1064413003/diff/1/content/child/web_url_loader_impl.cc File content/child/web_url_loader_impl.cc (right): https://chromiumcodereview.appspot.com/1064413003/diff/1/content/child/web_url_loader_impl.cc#newcode471 content/child/web_url_loader_impl.cc:471: request.frameType() == WebURLRequest::FrameTypeNone); For clarity this should ...
5 years, 8 months ago (2015-04-08 15:16:42 UTC) #3
Charlie Reis
LGTM with nits. Glad to see more tests will pass! Please enable them on the ...
5 years, 8 months ago (2015-04-09 00:47:40 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1064413003/20001
5 years, 8 months ago (2015-04-09 10:01:03 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-09 11:32:32 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/5c7ede5ffccfba15c2d0752d03bc6979f1d81bae Cr-Commit-Position: refs/heads/master@{#324414}
5 years, 8 months ago (2015-04-09 11:33:25 UTC) #9
clamy
Thanks! (Just realized I forgot to send the mail regarding the comments in the review) ...
5 years, 8 months ago (2015-04-09 15:55:07 UTC) #10
Charlie Reis
5 years, 8 months ago (2015-04-09 16:04:51 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/1064413003/diff/1/content/renderer/render_fra...
File content/renderer/render_frame_impl.h (right):

https://codereview.chromium.org/1064413003/diff/1/content/renderer/render_fra...
content/renderer/render_frame_impl.h:567: friend class RenderViewImplTest;
On 2015/04/09 15:55:06, clamy wrote:
> On 2015/04/08 15:16:42, carlosk wrote:
> > On 2015/04/08 14:19:30, clamy wrote:
> > > This is to not make the OnCommitNavigation handler public.
> > 
> > Instead of friending the test you could call OnMessageReceived, which is
> public,
> > passing a FrameMsg_CommitNavigation. I saw that being done in
> > RenderFrameHostManagerTest.DetachPendingChild.
> 
> Considering Nasko's comment at line 539, I will have it as a friend here (this
> will eventually allow to move OnNavigate back as a private member).

Actually, Nasko was referring to the FRIEND_TEST_ALL_PREFIXES lines below.  I'm
not sure if those will work for your new function?

We shouldn't have both the friend class and FRIEND_TEST_ALL_PREFIXES lines.  Can
you send a followup CL to choose one or the other?

Powered by Google App Engine
This is Rietveld 408576698