Fix ChromeResourceDispatcherHostDelegateMirrorBrowserTest.MirrorRequestHeader with network service.

The functionality worked, as part of converting DICE, however the test code didn't work since it
depended on accessing the net objects directly. Switch the tests to use the EmbeddedTestServer, to
better match production, which removes the dependency on net/.

-make GetFilePathWithReplacements replace strings in the mock headers if they're present
-add a global to google_util to ignore ports; that way other tests can be converted without having
  to modify each callsite to google_util

Bug: 881976
Change-Id: Ic52023495c1c98c1248025c11cdf37f433fef058
Commit-Queue: John Abd-El-Malek <>
Reviewed-by: Ramin Halavati <>
Reviewed-by: Maks Orlovich <>
Reviewed-by: Peter Kasting <>
Cr-Commit-Position: refs/heads/master@{#607652}
14 files changed