forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "Use TestActivationManager for all page activations"
This is a reland of commit c907065 [Reland Note] This CL was reverted as it depended on changes https://crrev.com/c/3452603 which was reverted, breaking the build. That CL was relanded in https://crrev.com/c/3494487 so this can now be relanded as well. No changes from original. Original change's description: > Use TestActivationManager for all page activations > > https://crrev.com/b650c95b330f added a new test helper, > TestActivationManager, to be used for navigations that are page > activating (e.g. BFCache restore, prerender activation). > > This CL makes the use of TestActivationManager and TestNavigationManager > mutually exclusive by DCHECKing in TestNavigationManager that a > navigation is *not* page activating. Tests must now use the correct > manager class depending on what kind of navigation they're trying to > control. This simplifies the TestNavigationManager and makes tests more > explicit about what's happening. > > This CL converts remaining tests that were using TestNavigationManager > to observe a page activating navigation. In cases where the test doesn't > control the navigation but only observes whether or not activation > occurred, the PrerenderHostObserver helper is used instead. > > Change-Id: Ib86008bd539e1e6b13a43b510f37ae98b29657ec > Bug: 1199724 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3472129 > Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> > Reviewed-by: Alex Moshchuk <alexmos@chromium.org> > Reviewed-by: Francois Pierre Doray <fdoray@chromium.org> > Commit-Queue: David Bokan <bokan@chromium.org> > Cr-Commit-Position: refs/heads/main@{#975493} Bug: 1199724 Change-Id: I5853ff20cb010c564b3f42a50fe5648e1f79b7f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3513332 Reviewed-by: Francois Pierre Doray <fdoray@chromium.org> Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Auto-Submit: David Bokan <bokan@chromium.org> Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/main@{#979413}
- Loading branch information
Showing
5 changed files
with
48 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters