Lines Matching refs:profile
494 explicit VisitCountingRenderProcessHost(Profile* profile)
495 : MockRenderProcessHost(profile) {}
500 static_cast<VisitCountingProfile*>(profile());
505 static_cast<VisitCountingProfile*>(profile());
516 explicit VisitRelayingRenderProcessHost(Profile* profile)
517 : BrowserRenderProcessHost(profile) {
540 static_cast<VisitCountingProfile*>(profile());
565 virtual RenderProcessHost* CreateRenderProcessHost(Profile* profile) const {
567 return new VisitRelayingRenderProcessHost(profile);
569 return new VisitCountingRenderProcessHost(profile);
600 VisitCountingProfile* profile() const {
639 EXPECT_EQ(0, profile()->add_count());
640 EXPECT_EQ(0, profile()->add_event_count());
645 EXPECT_EQ(3, profile()->add_count());
646 EXPECT_EQ(1, profile()->add_event_count());
656 EXPECT_EQ(6, profile()->add_count());
657 EXPECT_EQ(2, profile()->add_event_count());
665 EXPECT_EQ(6, profile()->add_count());
666 EXPECT_EQ(2, profile()->add_event_count());
675 EXPECT_EQ(6, profile()->add_count());
676 EXPECT_EQ(2, profile()->add_event_count());
677 EXPECT_EQ(1, profile()->reset_event_count());
692 EXPECT_EQ(1, profile()->add_event_count());
693 EXPECT_EQ(0, profile()->reset_event_count());
700 EXPECT_EQ(1, profile()->add_event_count());
701 EXPECT_EQ(1, profile()->reset_event_count());
719 EXPECT_EQ(0, profile()->add_event_count());
720 EXPECT_EQ(0, profile()->reset_event_count());
726 EXPECT_EQ(1, profile()->add_event_count());
727 EXPECT_EQ(0, profile()->reset_event_count());
739 EXPECT_EQ(1, profile()->add_event_count());
740 EXPECT_EQ(0, profile()->reset_event_count());
746 EXPECT_EQ(1, profile()->add_event_count());
747 EXPECT_EQ(1, profile()->reset_event_count());
766 EXPECT_EQ(0, profile()->add_event_count());
767 EXPECT_EQ(0, profile()->reset_event_count());
773 EXPECT_EQ(0, profile()->add_event_count());
774 EXPECT_EQ(1, profile()->reset_event_count());