DescriptionAdd GetURL variant to EmbeddedTestServer with hostname parameter.
When writing tests for cross-process navigation, we need to navigate to different hostnames. Doing this in tests requires lots of boilerplate code, which makes the test code harder to read and unlcear when we have cross-process navigation and when not. Adding this method will allow us to avoid the boilerplate code by putting it in a single method and make tests more readable. As we are ramping up work on out-of-process iframes, such tests will become a lot more common than in the past.
BUG=418236
Committed: https://crrev.com/a40f1b0f139724ca6df8be1ee34ad12b82097fda
Cr-Commit-Position: refs/heads/master@{#302012}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Fixing nits. #
Messages
Total messages: 8 (2 generated)
|