Lines Matching refs:GetProcess
290 // Test to ensure GetProcess returns and creates processes correctly.
291 TEST_F(SiteInstanceTest, GetProcess) {
292 // Ensure that GetProcess returns a process.
297 host1.reset(instance->GetProcess());
300 // Ensure that GetProcess creates a new process.
303 scoped_ptr<RenderProcessHost> host2(instance2->GetProcess());
440 scoped_ptr<RenderProcessHost> process_a1(site_instance_a1->GetProcess());
441 scoped_ptr<RenderProcessHost> process_a2_2(site_instance_a2_2->GetProcess());
479 scoped_ptr<RenderProcessHost> process_a1(site_instance_a1->GetProcess());
510 EXPECT_EQ(process_a1.get(), site_instance_a1_2->GetProcess());
521 scoped_ptr<RenderProcessHost> process_a2_3(site_instance_a2_3->GetProcess());
571 set_privileged_process_id(extension1_instance->GetProcess()->GetID());
578 extension1_instance->GetProcess());
579 EXPECT_EQ(extension1_instance->GetProcess(),
580 extension2_instance->GetProcess());
586 policy->GrantWebUIBindings(webui1_instance->GetProcess()->GetID());
592 scoped_ptr<RenderProcessHost> dom_host(webui1_instance->GetProcess());
593 EXPECT_EQ(webui1_instance->GetProcess(), webui2_instance->GetProcess());
596 EXPECT_NE(extension1_instance->GetProcess(), webui1_instance->GetProcess());
599 EXPECT_NE(extension1_instance->GetProcess(), hosts[i]);
600 EXPECT_NE(webui1_instance->GetProcess(), hosts[i]);
624 // The call to GetProcess actually creates a new real process, which works
626 host.reset(instance->GetProcess());
641 scoped_ptr<RenderProcessHost> webui_host(webui_instance->GetProcess());
652 // even if we haven't called GetProcess yet. Make sure HasWrongProcessForURL
683 // The call to GetProcess actually creates a new real process, which works
685 host.reset(instance->GetProcess());
716 // The call to GetProcess actually creates a new real process.
717 host.reset(instance->GetProcess());
731 host2.reset(instance2->GetProcess());
752 host.reset(instance->GetProcess());