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

Issue 2640473003: Convert tests to use the non-deprecated WebContentsObserver navigation methods. (Closed)

Created:
3 years, 11 months ago by jam
Modified:
3 years, 11 months ago
Reviewers:
clamy
CC:
chromium-reviews, nasko+codewatch_chromium.org, extensions-reviews_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, creis+watch_chromium.org, donnd+watch_chromium.org, jam, darin-cc_chromium.org, jfweitz+watch_chromium.org, David Black, sync-reviews_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, chromium-apps-reviews_chromium.org, Jered
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert tests to use the non-deprecated WebContentsObserver navigation methods. Some unit tests use a harness that is not very realistic, so it doesn't send the new callbacks when PlzNavigate isn't enabled. In those cases I've added both methods and I'm using each of them depending on the mode. This makes it trivial to delete the old code path when switching PlzNavigate on and deleting the old methods, instead of having to update the tests then. BUG=682002 Review-Url: https://codereview.chromium.org/2640473003 Cr-Commit-Position: refs/heads/master@{#445115} Committed: https://chromium.googlesource.com/chromium/src/+/f174850ffb24a21a76cd786551203c26a47b97d4

Patch Set 1 #

Patch Set 2 : split off SearchTabHelper test #

Total comments: 8

Patch Set 3 : review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -67 lines) Patch
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 2 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller_unittest.cc View 2 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_observer_unittest.cc View 8 chunks +50 lines, -16 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_browsertest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura_browsertest.cc View 1 2 2 chunks +3 lines, -34 lines 2 comments Download

Messages

Total messages: 23 (15 generated)
jam
3 years, 11 months ago (2017-01-18 00:02:27 UTC) #7
clamy
Thanks! A few questions below. https://codereview.chromium.org/2640473003/diff/20001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/2640473003/diff/20001/chrome/browser/ui/browser_browsertest.cc#newcode290 chrome/browser/ui/browser_browsertest.cc:290: if (!content::IsBrowserSideNavigationEnabled()) Does it ...
3 years, 11 months ago (2017-01-18 14:33:34 UTC) #10
jam
https://codereview.chromium.org/2640473003/diff/20001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/2640473003/diff/20001/chrome/browser/ui/browser_browsertest.cc#newcode290 chrome/browser/ui/browser_browsertest.cc:290: if (!content::IsBrowserSideNavigationEnabled()) On 2017/01/18 14:33:34, clamy wrote: > Does ...
3 years, 11 months ago (2017-01-18 16:35:21 UTC) #11
clamy
https://codereview.chromium.org/2640473003/diff/20001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/2640473003/diff/20001/chrome/browser/ui/browser_browsertest.cc#newcode290 chrome/browser/ui/browser_browsertest.cc:290: if (!content::IsBrowserSideNavigationEnabled()) On 2017/01/18 16:35:21, jam wrote: > On ...
3 years, 11 months ago (2017-01-19 14:59:37 UTC) #16
jam
https://codereview.chromium.org/2640473003/diff/40001/content/browser/web_contents/web_contents_view_aura_browsertest.cc File content/browser/web_contents/web_contents_view_aura_browsertest.cc (right): https://codereview.chromium.org/2640473003/diff/40001/content/browser/web_contents/web_contents_view_aura_browsertest.cc#newcode827 content/browser/web_contents/web_contents_view_aura_browsertest.cc:827: nav_watcher.WaitForNavigationFinished(); On 2017/01/19 14:59:37, clamy wrote: > This doesn't ...
3 years, 11 months ago (2017-01-20 05:52:16 UTC) #17
clamy
Ok lgtm.
3 years, 11 months ago (2017-01-20 17:43:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2640473003/40001
3 years, 11 months ago (2017-01-20 18:16:47 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 19:02:18 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f174850ffb24a21a76cd78655120...

Powered by Google App Engine
This is Rietveld 408576698