DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
mock_mpd_builder.cc
1 #include "packager/mpd/base/mock_mpd_builder.h"
2 
3 #include "packager/mpd/base/media_info.pb.h"
4 
5 namespace shaka {
6 namespace {
7 const char kEmptyLang[] = "";
8 const MpdOptions kDefaultMpdOptions;
9 const MpdBuilder::MpdType kDefaultMpdType = MpdBuilder::kStatic;
10 } // namespace
11 
12 // Doesn't matter what values get passed to the super class' constructor.
13 // All methods used for testing should be mocked.
14 MockMpdBuilder::MockMpdBuilder(MpdType type)
15  : MpdBuilder(type, kDefaultMpdOptions) {}
16 MockMpdBuilder::~MockMpdBuilder() {}
17 
18 MockAdaptationSet::MockAdaptationSet(uint32_t adaptation_set_id)
19  : AdaptationSet(adaptation_set_id,
20  kEmptyLang,
21  kDefaultMpdOptions,
22  kDefaultMpdType,
23  &sequence_counter_) {}
24 MockAdaptationSet::~MockAdaptationSet() {}
25 
26 MockRepresentation::MockRepresentation(uint32_t representation_id)
27  : Representation(MediaInfo(),
28  kDefaultMpdOptions,
29  representation_id,
30  std::unique_ptr<RepresentationStateChangeListener>()) {}
31 MockRepresentation::~MockRepresentation() {}
32 
33 } // namespace shaka