2015-07-16 06:51:24 +00:00
|
|
|
#include "packager/mpd/base/mock_mpd_builder.h"
|
|
|
|
|
|
|
|
#include "packager/mpd/base/media_info.pb.h"
|
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2015-07-16 06:51:24 +00:00
|
|
|
namespace {
|
|
|
|
const char kEmptyLang[] = "";
|
|
|
|
const MpdOptions kDefaultMpdOptions;
|
|
|
|
const MpdBuilder::MpdType kDefaultMpdType = MpdBuilder::kStatic;
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
// Doesn't matter what values get passed to the super class' constructor.
|
|
|
|
// All methods used for testing should be mocked.
|
|
|
|
MockMpdBuilder::MockMpdBuilder(MpdType type)
|
|
|
|
: MpdBuilder(type, kDefaultMpdOptions) {}
|
|
|
|
MockMpdBuilder::~MockMpdBuilder() {}
|
|
|
|
|
2015-07-22 06:57:21 +00:00
|
|
|
MockAdaptationSet::MockAdaptationSet(uint32_t adaptation_set_id)
|
|
|
|
: AdaptationSet(adaptation_set_id,
|
2015-07-16 06:51:24 +00:00
|
|
|
kEmptyLang,
|
|
|
|
kDefaultMpdOptions,
|
|
|
|
kDefaultMpdType,
|
|
|
|
&sequence_counter_) {}
|
|
|
|
MockAdaptationSet::~MockAdaptationSet() {}
|
|
|
|
|
|
|
|
MockRepresentation::MockRepresentation(uint32_t representation_id)
|
|
|
|
: Representation(MediaInfo(),
|
|
|
|
kDefaultMpdOptions,
|
|
|
|
representation_id,
|
2016-08-17 17:41:40 +00:00
|
|
|
std::unique_ptr<RepresentationStateChangeListener>()) {}
|
2015-07-16 06:51:24 +00:00
|
|
|
MockRepresentation::~MockRepresentation() {}
|
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|