This source file includes following definitions.
- TEST_F
#include "content/public/test/mock_render_process_host.h"
#include "content/test/test_render_view_host.h"
namespace content {
class RenderProcessHostUnitTest : public RenderViewHostTestHarness {};
TEST_F(RenderProcessHostUnitTest, GuestsAreNotSuitableHosts) {
GURL test_url("http://foo.com");
MockRenderProcessHost guest_host(browser_context());
guest_host.SetIsGuest(true);
EXPECT_FALSE(RenderProcessHostImpl::IsSuitableHost(
&guest_host, browser_context(), test_url));
EXPECT_TRUE(RenderProcessHostImpl::IsSuitableHost(
process(), browser_context(), test_url));
EXPECT_EQ(
process(),
RenderProcessHost::GetExistingProcessHost(browser_context(), test_url));
}
}