Use MockRenderProcessHost in memory coordinator unittests
Calling RenderProcessHost::FromID() directly prevents us to write unittests. Add a virtual method for getting RenderProcessHost so that testing code can use MockRenderProcessHost to write unittests. Also, this CL installs a MemoryCoordinatorDelegate in unittests so that unittests can have wider coverage. BUG=675811 Review-Url: https://codereview.chromium.org/2594513002 Cr-Commit-Position: refs/heads/master@{#439764}
Showing
Please register or sign in to comment