| 74 | } |
| 75 | |
| 76 | bool IndexerTest::DoIndexing(std::string file_name) { |
| 77 | indexer = FFMS_CreateIndexer(file_name.c_str(), &E); |
| 78 | NULL_CHECK(indexer); |
| 79 | FFMS_TrackTypeIndexSettings(indexer, FFMS_TYPE_VIDEO, 1, 0); |
| 80 | |
| 81 | index = FFMS_DoIndexing2(indexer, 0, &E); |
| 82 | NULL_CHECK(index); |
| 83 | |
| 84 | video_track_idx = FFMS_GetFirstTrackOfType(index, FFMS_TYPE_VIDEO, &E); |
| 85 | EXPECT_GE(0, video_track_idx); |
| 86 | |
| 87 | video_source = FFMS_CreateVideoSource(file_name.c_str(), video_track_idx, index, 1, FFMS_SEEK_NORMAL, &E); |
| 88 | NULL_CHECK(video_source); |
| 89 | |
| 90 | VP = FFMS_GetVideoProperties(video_source); // Can't fail |
| 91 | |
| 92 | return true; |
| 93 | } |
| 94 | |
| 95 | TEST_P(IndexerTest, ValidateFrameCount) { |
| 96 | TestDataMap P = GetParam(); |
nothing calls this directly
no test coverage detected