Lines Matching full:event_ptrs
708 TraceEventVector event_ptrs;
721 event_ptrs.push_back(&events.back());
724 ASSERT_TRUE(GetRateStats(event_ptrs, &stats, NULL));
733 event_ptrs.push_back(&events.back());
735 ASSERT_TRUE(GetRateStats(event_ptrs, &stats, NULL));
744 ASSERT_TRUE(GetRateStats(event_ptrs, &stats, &options));
753 event_ptrs.push_back(&events.back());
758 ASSERT_TRUE(GetRateStats(event_ptrs, &stats, &options));
782 TraceEventVector event_ptrs;
783 EXPECT_FALSE(FindFirstOf(event_ptrs, Query::Bool(true), 0, &index));
784 EXPECT_FALSE(FindFirstOf(event_ptrs, Query::Bool(true), 10, &index));
785 EXPECT_FALSE(FindLastOf(event_ptrs, Query::Bool(true), 0, &index));
786 EXPECT_FALSE(FindLastOf(event_ptrs, Query::Bool(true), 10, &index));
791 event_ptrs.push_back(&events[i]);
797 EXPECT_FALSE(FindFirstOf(event_ptrs, Query::Bool(false), 0, &index));
798 EXPECT_TRUE(FindFirstOf(event_ptrs, Query::Bool(true), 0, &index));
800 EXPECT_TRUE(FindFirstOf(event_ptrs, Query::Bool(true), 5, &index));
803 EXPECT_FALSE(FindFirstOf(event_ptrs, query_bam, bam_index + 1, &index));
804 EXPECT_TRUE(FindFirstOf(event_ptrs, query_bam, 0, &index));
806 EXPECT_TRUE(FindFirstOf(event_ptrs, query_bam, bam_index, &index));
810 EXPECT_FALSE(FindLastOf(event_ptrs, Query::Bool(false), 1000, &index));
811 EXPECT_TRUE(FindLastOf(event_ptrs, Query::Bool(true), 1000, &index));
813 EXPECT_TRUE(FindLastOf(event_ptrs, Query::Bool(true), num_events - 5,
817 EXPECT_FALSE(FindLastOf(event_ptrs, query_bam, bam_index - 1, &index));
818 EXPECT_TRUE(FindLastOf(event_ptrs, query_bam, num_events, &index));
820 EXPECT_TRUE(FindLastOf(event_ptrs, query_bam, bam_index, &index));
828 TraceEventVector event_ptrs;
829 EXPECT_FALSE(FindClosest(event_ptrs, Query::Bool(true), 0,
839 event_ptrs.push_back(&events[i]);
848 EXPECT_FALSE(FindClosest(event_ptrs, query_one, 0, &index_1, &index_2));
850 EXPECT_TRUE(FindClosest(event_ptrs, query_one, 3, &index_1, NULL));
853 EXPECT_TRUE(FindClosest(event_ptrs, query_named, 1, &index_1, &index_2));
857 EXPECT_TRUE(FindClosest(event_ptrs, query_named, 4, &index_1, &index_2));
861 EXPECT_TRUE(FindClosest(event_ptrs, query_named, 3, &index_1, &index_2));
868 TraceEventVector event_ptrs;
869 EXPECT_EQ(0u, CountMatches(event_ptrs, Query::Bool(true), 0, 10));
876 event_ptrs.push_back(&events[i]);
883 EXPECT_EQ(0u, CountMatches(event_ptrs, Query::Bool(false)));
884 EXPECT_EQ(num_events, CountMatches(event_ptrs, Query::Bool(true)));
885 EXPECT_EQ(num_events - 1, CountMatches(event_ptrs, Query::Bool(true),
887 EXPECT_EQ(1u, CountMatches(event_ptrs, query_one));
888 EXPECT_EQ(num_events - 1, CountMatches(event_ptrs, !query_one));
889 EXPECT_EQ(num_named, CountMatches(event_ptrs, query_named));