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

Issue 761013003: PlzNavigate: add support in several navigation controller unit tests (Closed)

Created:
6 years ago by clamy
Modified:
6 years ago
Reviewers:
Charlie Reis, carlosk, nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: add support in several navigation controller unit tests This CL rewrites several NavigationControllerTests so that they use helper functions working with PlzNavigate instead of being dependant on the current implementation of navigation. BUG=439423 Committed: https://crrev.com/7c5016ccbd307a4e2a2ca140cc0739f29f288bb0 Cr-Commit-Position: refs/heads/master@{#309207}

Patch Set 1 #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : Moved the functions to the TestRenderFrameHost #

Total comments: 24

Patch Set 4 : Addressed Nasko's comments #

Total comments: 14

Patch Set 5 : Fixed description of states #

Patch Set 6 : Addressed Nasko's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -53 lines) Patch
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 17 chunks +43 lines, -16 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 3 chunks +31 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M content/test/test_render_frame_host.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 2 chunks +47 lines, -1 line 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 5 5 chunks +14 lines, -33 lines 0 comments Download

Messages

Total messages: 23 (4 generated)
clamy
@carlosk, nasko: PTAL. This is a refactoring of several NavigationControllerTests that are currently failing with ...
6 years ago (2014-12-05 14:50:30 UTC) #2
nasko
Bunch of comments, but my main concern is losing the ability to navigate at the ...
6 years ago (2014-12-11 00:51:46 UTC) #3
clamy
In that case, I could introduce these methods on the tree node level. That would ...
6 years ago (2014-12-11 13:01:18 UTC) #4
nasko
On 2014/12/11 13:01:18, clamy wrote: > In that case, I could introduce these methods on ...
6 years ago (2014-12-11 23:16:35 UTC) #5
clamy
Thanks! I rewrote the patch entirely to have it use TestRenderFrameHost. One of the tricky ...
6 years ago (2014-12-15 17:01:39 UTC) #7
nasko
This looks much better! Few more comments. https://chromiumcodereview.appspot.com/761013003/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/761013003/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode419 content/browser/frame_host/navigation_controller_impl_unittest.cc:419: if (base::CommandLine::ForCurrentProcess()->HasSwitch( ...
6 years ago (2014-12-16 01:40:27 UTC) #8
clamy
Thanks! Please find my answer to a few comments below. I will try to upload ...
6 years ago (2014-12-16 19:19:05 UTC) #9
Charlie Reis
https://codereview.chromium.org/761013003/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://codereview.chromium.org/761013003/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode764 content/browser/frame_host/navigation_controller_impl_unittest.cc:764: contents()->GetMainFrame()->SendNavigate(3, kNewURL); On 2014/12/15 17:01:39, clamy wrote: > I ...
6 years ago (2014-12-16 23:17:34 UTC) #11
nasko
https://chromiumcodereview.appspot.com/761013003/diff/60001/content/browser/frame_host/navigation_request.h File content/browser/frame_host/navigation_request.h (right): https://chromiumcodereview.appspot.com/761013003/diff/60001/content/browser/frame_host/navigation_request.h#newcode58 content/browser/frame_host/navigation_request.h:58: void SetWaitingForRendererResponse() { On 2014/12/16 19:19:05, clamy wrote: > ...
6 years ago (2014-12-17 00:55:02 UTC) #12
clamy
Thanks! Here is the new patchset. https://chromiumcodereview.appspot.com/761013003/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/761013003/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode419 content/browser/frame_host/navigation_controller_impl_unittest.cc:419: if (base::CommandLine::ForCurrentProcess()->HasSwitch( On ...
6 years ago (2014-12-17 15:47:58 UTC) #13
nasko
This looks awesome! Few comments and I think we will be good to go. https://chromiumcodereview.appspot.com/761013003/diff/80001/content/browser/frame_host/navigation_controller_impl_unittest.cc ...
6 years ago (2014-12-17 19:55:38 UTC) #14
carlosk
On 2014/12/17 19:55:38, nasko wrote: > This looks awesome! Few comments and I think we ...
6 years ago (2014-12-18 01:16:31 UTC) #15
clamy
Thanks! https://chromiumcodereview.appspot.com/761013003/diff/80001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/761013003/diff/80001/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode778 content/browser/frame_host/navigation_controller_impl_unittest.cc:778: main_test_rfh()->SendRendererResponseToNavigation(true, kExistingURL2); On 2014/12/17 19:55:38, nasko wrote: > ...
6 years ago (2014-12-18 13:54:43 UTC) #16
nasko
https://chromiumcodereview.appspot.com/761013003/diff/80001/content/test/test_render_frame_host.cc File content/test/test_render_frame_host.cc (right): https://chromiumcodereview.appspot.com/761013003/diff/80001/content/test/test_render_frame_host.cc#newcode131 content/test/test_render_frame_host.cc:131: PrepareForCommit(params->url); On 2014/12/18 13:54:42, clamy wrote: > On 2014/12/17 ...
6 years ago (2014-12-18 15:53:34 UTC) #17
clamy
Thanks! Here is the new version, which should be simpler. https://chromiumcodereview.appspot.com/761013003/diff/80001/content/test/test_render_frame_host.cc File content/test/test_render_frame_host.cc (right): https://chromiumcodereview.appspot.com/761013003/diff/80001/content/test/test_render_frame_host.cc#newcode131 ...
6 years ago (2014-12-19 14:39:33 UTC) #18
nasko
Awesome! LGTM
6 years ago (2014-12-19 15:01:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/761013003/120001
6 years ago (2014-12-19 15:07:13 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:120001)
6 years ago (2014-12-19 15:58:57 UTC) #22
commit-bot: I haz the power
6 years ago (2014-12-19 15:59:52 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7c5016ccbd307a4e2a2ca140cc0739f29f288bb0
Cr-Commit-Position: refs/heads/master@{#309207}

Powered by Google App Engine
This is Rietveld 408576698