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

Issue 1417953002: PlzNavigate: Add tests to check WebUI navigations. (Closed)

Created:
5 years, 2 months ago by carlosk
Modified:
5 years, 1 month ago
Reviewers:
clamy, 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 tests to check WebUI navigations. (was "PlzNavigate: never discard and recreate the same speculative WebUI") Adds 3 tests to verify the correct handling of WebUI state when navigating between different WebUI URLs. This change also: - Improves the PlzNavigate version of RenderFrameHostManagerTest tests by making it better simulate the navigation and fixes a test that was broken because of that. - Allows control over returned WebUIType values from the mock factory. This is based off and depends on the landing of https://codereview.chromium.org/1418853003. BUG=508850

Patch Set 1 : Minor update. #

Total comments: 8

Patch Set 2 : Fixing change/branch dependency. #

Patch Set 3 : Changes from clamy@ comments. #

Total comments: 8

Patch Set 4 : Code comment fixes. #

Patch Set 5 : Broken test into 3 separate ones. Other minor changes. #

Total comments: 26

Patch Set 6 : Addressing CR comments (still needs a rebase). #

Total comments: 2

Patch Set 7 : Rebase to a different patch (http://crrev.com/1418853003) and comment update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -3 lines) Patch
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 6 8 chunks +202 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 20 (9 generated)
carlosk
nasko@, clamy@: PTAL. This is the fix for the CleanUpNavigation problem I had a TODO ...
5 years, 2 months ago (2015-10-21 16:19:06 UTC) #5
clamy
Thanks! A few preliminary comments. I haven't reviewed the new test yet, will do it ...
5 years, 2 months ago (2015-10-21 16:54:22 UTC) #6
carlosk
Thanks. https://codereview.chromium.org/1417953002/diff/40001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1417953002/diff/40001/content/browser/frame_host/render_frame_host_manager.cc#newcode1011 content/browser/frame_host/render_frame_host_manager.cc:1011: render_frame_host_->UpdatePendingWebUI(request.common_params().url, On 2015/10/21 16:54:22, clamy wrote: > This ...
5 years, 2 months ago (2015-10-22 13:36:19 UTC) #9
clamy
Thanks! https://codereview.chromium.org/1417953002/diff/120001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1417953002/diff/120001/content/browser/frame_host/render_frame_host_manager.cc#newcode1004 content/browser/frame_host/render_frame_host_manager.cc:1004: if (speculative_render_frame_host_) I think you could add a ...
5 years, 2 months ago (2015-10-22 15:37:11 UTC) #10
carlosk
Thanks. https://codereview.chromium.org/1417953002/diff/120001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1417953002/diff/120001/content/browser/frame_host/render_frame_host_manager.cc#newcode1004 content/browser/frame_host/render_frame_host_manager.cc:1004: if (speculative_render_frame_host_) On 2015/10/22 15:37:10, clamy wrote: > ...
5 years, 2 months ago (2015-10-22 16:23:48 UTC) #11
clamy
Thanks! A few more comments. Other than that I'm fine with the patch. https://codereview.chromium.org/1417953002/diff/160001/content/browser/frame_host/render_frame_host_manager.cc File ...
5 years, 2 months ago (2015-10-22 16:51:40 UTC) #12
carlosk
Thanks. This change will need a rebase due to changes still ongoing with the refactor. ...
5 years, 1 month ago (2015-10-26 10:33:23 UTC) #13
clamy
Thanks! Lgtm. https://codereview.chromium.org/1417953002/diff/180001/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc (right): https://codereview.chromium.org/1417953002/diff/180001/content/browser/frame_host/render_frame_host_manager_unittest.cc#newcode67 content/browser/frame_host/render_frame_host_manager_unittest.cc:67: // This method allows simulating the expectation ...
5 years, 1 month ago (2015-10-27 11:54:44 UTC) #14
nasko
I would hold off on this one until the main CL is updated with the ...
5 years, 1 month ago (2015-10-27 22:05:40 UTC) #15
carlosk
As finally I'm in need on the original WebUI change of the ability to set ...
5 years, 1 month ago (2015-11-12 10:40:39 UTC) #19
carlosk
5 years, 1 month ago (2015-11-12 10:41:14 UTC) #20

Powered by Google App Engine
This is Rietveld 408576698