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

Issue 715203004: PlzNavigate: Add a browser test for basic navigations (Closed)

Created:
6 years, 1 month ago by clamy
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, Mostyn Bramley-Moore
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Add a browser test for basic navigations This CL adds a browsertest that checks that basic browser initiated navigations work with browser side navigations enabled. BUG=376014, 376006, 376091 Committed: https://crrev.com/cd857adbb07fb2e889fa24282648e1f64ede2c95 Cr-Commit-Position: refs/heads/master@{#313480}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Added a browser test for renderer initiated navigations #

Total comments: 13

Patch Set 3 : Folded the TestNavigationWebContentsObserver in TestNavigationObserver #

Total comments: 4

Patch Set 4 : Fixed nits #

Patch Set 5 : Disabled the renderer initiated cross iste test on Win #

Patch Set 6 : Fixed issue with cross-site navigation test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -122 lines) Patch
A content/browser/browser_side_navigation_browsertest.cc View 1 2 3 4 5 1 chunk +162 lines, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 37 chunks +77 lines, -122 lines 2 comments Download
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/test_navigation_observer.h View 1 2 4 chunks +24 lines, -0 lines 0 comments Download
M content/public/test/test_navigation_observer.cc View 1 2 3 4 5 2 chunks +50 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/simple_links.html View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (9 generated)
clamy
@carlosk, nasko: PTAL. This CL introduces a browsertest to exercise the full PlzNavigate codepath. https://chromiumcodereview.appspot.com/715203004/diff/1/content/browser/browser_side_navigation_browsertest.cc ...
6 years, 1 month ago (2014-11-19 16:41:04 UTC) #2
nasko
Thanks for adding this! https://chromiumcodereview.appspot.com/715203004/diff/1/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): https://chromiumcodereview.appspot.com/715203004/diff/1/content/browser/browser_side_navigation_browsertest.cc#newcode18 content/browser/browser_side_navigation_browsertest.cc:18: class BrowserSideNavigationWebContentsObserver : public WebContentsObserver ...
6 years, 1 month ago (2014-11-19 18:05:56 UTC) #3
carlosk
Indeed it's good to have a bit more evidence that PlzNavigate is working as expected ...
6 years, 1 month ago (2014-11-20 14:15:49 UTC) #4
clamy
Thanks! I have added another test for renderer initiated navigations. https://chromiumcodereview.appspot.com/715203004/diff/1/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): https://chromiumcodereview.appspot.com/715203004/diff/1/content/browser/browser_side_navigation_browsertest.cc#newcode18 ...
6 years ago (2014-11-24 16:49:59 UTC) #5
nasko
https://chromiumcodereview.appspot.com/715203004/diff/20001/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): https://chromiumcodereview.appspot.com/715203004/diff/20001/content/browser/browser_side_navigation_browsertest.cc#newcode51 content/browser/browser_side_navigation_browsertest.cc:51: TestNavigationWebContentsObserver observer2(shell()->web_contents()); It will be a bit more readable ...
6 years ago (2014-11-24 23:15:01 UTC) #6
clamy
Thanks! Here is a version with the TestNavigationWebContentsObserver folded in TestNavigationObserver. https://chromiumcodereview.appspot.com/715203004/diff/20001/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): ...
6 years ago (2014-11-26 12:47:43 UTC) #7
carlosk
Found just a couple of minor things. LGTM after answering those. https://chromiumcodereview.appspot.com/715203004/diff/40001/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): ...
6 years ago (2014-11-26 15:02:53 UTC) #8
nasko
lgtm https://codereview.chromium.org/715203004/diff/20001/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): https://codereview.chromium.org/715203004/diff/20001/content/browser/browser_side_navigation_browsertest.cc#newcode79 content/browser/browser_side_navigation_browsertest.cc:79: GURL main_url1(embedded_test_server()->GetURL("/simple_links.html")); On 2014/11/26 12:47:42, clamy wrote: > ...
6 years ago (2014-11-26 16:00:33 UTC) #9
clamy
Thanks! https://chromiumcodereview.appspot.com/715203004/diff/40001/content/browser/browser_side_navigation_browsertest.cc File content/browser/browser_side_navigation_browsertest.cc (right): https://chromiumcodereview.appspot.com/715203004/diff/40001/content/browser/browser_side_navigation_browsertest.cc#newcode42 content/browser/browser_side_navigation_browsertest.cc:42: GURL main_url(embedded_test_server()->GetURL("/title1.html")); On 2014/11/26 15:02:53, carlosk wrote: > ...
6 years ago (2014-11-27 17:16:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/715203004/60001
6 years ago (2014-11-27 17:17:28 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/15444)
6 years ago (2014-11-27 18:44:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/715203004/80001
6 years ago (2014-12-02 13:35:06 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/33412)
6 years ago (2014-12-02 15:34:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/715203004/100001
5 years, 11 months ago (2015-01-27 17:42:48 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/115764) win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/99432) Try ...
5 years, 11 months ago (2015-01-27 19:27:42 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/715203004/100001
5 years, 10 months ago (2015-01-28 10:47:03 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-01-28 11:31:10 UTC) #25
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/cd857adbb07fb2e889fa24282648e1f64ede2c95 Cr-Commit-Position: refs/heads/master@{#313480}
5 years, 10 months ago (2015-01-28 11:32:27 UTC) #26
dconnelly
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/884683002/ by dconnelly@chromium.org. ...
5 years, 10 months ago (2015-01-28 11:47:26 UTC) #27
Mostyn Bramley-Moore
In commit cd857adbb07fb2e889fa24282648e1f64ede2c95 there was stray SitePerProcessWebContentsObserver left on content/browser/site_per_process_browsertest.cc line 927. But strangely, when ...
5 years, 10 months ago (2015-01-28 11:56:17 UTC) #29
clamy
5 years, 10 months ago (2015-01-28 12:14:03 UTC) #30
Message was sent while issue was closed.
Looking at tot locally, https://codereview.chromium.org/797813006 added a test
yesterday night which uses the SitePerProcessWebContentsObserver. Funnily it
does not show in the diff. I tried to submit that patch yesterday and got all
bots green but the windows gpu one, so only this one was rerun this morning
which does not compile the problematic file. So a lot of bad timing.

Powered by Google App Engine
This is Rietveld 408576698