7 #include "packager/media/base/text_sample.h" 9 #include "packager/base/logging.h" 14 int64_t TextSample::EndTime()
const {
15 return start_time_ + duration_;
18 void TextSample::SetTime(int64_t start_time, int64_t end_time) {
19 DCHECK_GE(start_time, 0);
20 DCHECK_GT(end_time, 0);
21 DCHECK_LT(start_time, end_time);
22 start_time_ = start_time;
23 duration_ = end_time - start_time;
26 void TextSample::AppendStyle(
const std::string& style) {
27 if (settings_.length()) {
33 void TextSample::AppendPayload(
const std::string& payload) {
34 if (payload_.length()) {
All the methods that are virtual are virtual for mocking.