7 #include <packager/media/formats/mp4/sync_sample_iterator.h>
17 sync_sample_vector_(sync_sample.sample_number),
18 iterator_(sync_sample_vector_.begin()),
19 is_empty_(iterator_ == sync_sample_vector_.end()) {}
20 SyncSampleIterator::~SyncSampleIterator() {}
23 if (iterator_ != sync_sample_vector_.end() && sample_number_ == *iterator_)
33 return iterator_ != sync_sample_vector_.end() && sample_number_ == *iterator_;
40 return std::binary_search(
41 sync_sample_vector_.begin(), sync_sample_vector_.end(), sample);
All the methods that are virtual are virtual for mocking.