Lines Matching refs:segment_
41 ParserTest() : is_reader_open_(false), segment_(NULL) { in ParserTest()
48 if (segment_ != NULL) { in ~ParserTest()
49 delete segment_; in ~ParserTest()
50 segment_ = NULL; in ~ParserTest()
77 if (mkvparser::Segment::CreateInstance(&reader_, pos_, segment_)) { in CreateAndLoadSegment()
80 return !HasFailure() && segment_->Load() >= 0; in CreateAndLoadSegment()
93 ASSERT_EQ(0, mkvparser::Segment::CreateInstance(&reader_, pos_, segment_)); in CreateSegmentNoHeaderChecks()
116 EXPECT_EQ(static_cast<long long>(timestamp), cue_point->GetTime(segment_)); in CompareCuePointContents()
126 Segment* segment_; member in test::ParserTest
135 const SegmentInfo* const info = segment_->GetInfo(); in TEST_F()
143 const Tracks* const tracks = segment_->GetTracks(); in TEST_F()
175 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
178 const Cluster* cluster = segment_->GetFirst(); in TEST_F()
200 cluster = segment_->GetNext(cluster); in TEST_F()
207 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
210 const Cluster* cluster = segment_->GetFirst(); in TEST_F()
225 cluster = segment_->GetNext(cluster); in TEST_F()
246 cluster = segment_->GetNext(cluster); in TEST_F()
260 cluster = segment_->GetNext(cluster); in TEST_F()
267 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
270 const Cluster* cluster = segment_->GetFirst(); in TEST_F()
298 cluster = segment_->GetNext(cluster); in TEST_F()
305 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
307 const Track* const track = segment_->GetTracks()->GetTrackByIndex(0); in TEST_F()
308 const Cues* const cues = segment_->GetCues(); in TEST_F()
329 EXPECT_TRUE(ValidateCues(segment_, &reader_)); in TEST_F()
335 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
337 const Track* const track = segment_->GetTracks()->GetTrackByIndex(0); in TEST_F()
338 const Cues* const cues = segment_->GetCues(); in TEST_F()
355 EXPECT_TRUE(ValidateCues(segment_, &reader_)); in TEST_F()
361 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
363 const Track* const track = segment_->GetTracks()->GetTrackByIndex(0); in TEST_F()
364 const Cues* const cues = segment_->GetCues(); in TEST_F()
381 EXPECT_TRUE(ValidateCues(segment_, &reader_)); in TEST_F()
387 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
391 const Tracks* const tracks = segment_->GetTracks(); in TEST_F()
444 const Cluster* cluster = segment_->GetFirst(); in TEST_F()
449 cluster = segment_->GetNext(cluster)) { in TEST_F()
508 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
512 const Tracks* const tracks = segment_->GetTracks(); in TEST_F()
542 const Cluster* cluster = segment_->GetFirst(); in TEST_F()
546 EXPECT_EQ(kSegmentCount, segment_->GetCount()); in TEST_F()
589 cluster = segment_->GetNext(cluster); in TEST_F()
597 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
600 segment_->GetTracks()->GetTrackByIndex(0)); in TEST_F()
612 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
614 segment_->GetTracks()->GetTrackByIndex(0)); in TEST_F()
654 EXPECT_EQ(kTracksCount, segment_->GetTracks()->GetTracksCount()); in TEST_F()
656 static_cast<const VideoTrack*>(segment_->GetTracks()->GetTrackByIndex(0)); in TEST_F()
768 EXPECT_EQ(mkvparser::E_PARSE_FAILED, segment_->Load()); in TEST_F()
774 EXPECT_EQ(mkvparser::E_FILE_FORMAT_INVALID, segment_->Load()); in TEST_F()
780 ASSERT_EQ(0, segment_->Load()); in TEST_F()
783 segment_->GetFirst()->GetFirst(block_entry)); in TEST_F()
789 ASSERT_EQ(0, segment_->Load()); in TEST_F()
791 EXPECT_EQ(0, segment_->GetFirst()->GetFirst(block_entry)); in TEST_F()
793 segment_->GetFirst()->GetNext(block_entry, block_entry)); in TEST_F()
799 ASSERT_EQ(0, segment_->Load()); in TEST_F()
801 EXPECT_EQ(0, segment_->GetFirst()->GetFirst(block_entry)); in TEST_F()
803 segment_->GetFirst()->GetNext(block_entry, block_entry)); in TEST_F()
809 EXPECT_EQ(mkvparser::E_FILE_FORMAT_INVALID, segment_->Load()); in TEST_F()
815 EXPECT_EQ(mkvparser::E_FILE_FORMAT_INVALID, segment_->Load()); in TEST_F()