DescriptionUse IPC::TestSink instead of MockSubresourceFilterDrivers in unittests.
Refactor ContentSubresourceFilterDriverFactoryTests to no longer inject mock
ContentSubresourceFilterDrivers for verifying that the sending of activation
IPC messages is triggered.
Instead, expect to find the activation IPC message in the IPC::TestSink
associated with the MockRenderProcessHost. This supports unit-testing scenarios
with transfer navigations, without the need for inventing a mechanism to inject
mock drivers into all RFHs at opportune times.
BUG=637415
Review-Url: https://codereview.chromium.org/2695243002
Cr-Commit-Position: refs/heads/master@{#450695}
Committed: https://chromium.googlesource.com/chromium/src/+/5dbb827e3b41a97ec2d7105a0378c268a5d29fbe
Patch Set 1 #
Messages
Total messages: 16 (9 generated)
|