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 } // namespace
10 
11 // Doesn't matter what values get passed to the super class' constructor.
12 // All methods used for testing should be mocked.
13 MockMpdBuilder::MockMpdBuilder() : MpdBuilder(kDefaultMpdOptions) {}
14 MockMpdBuilder::~MockMpdBuilder() {}
15 
16 MockAdaptationSet::MockAdaptationSet(uint32_t adaptation_set_id)
17  : AdaptationSet(adaptation_set_id,
18  kEmptyLang,
19  kDefaultMpdOptions,
20  &sequence_counter_) {}
21 MockAdaptationSet::~MockAdaptationSet() {}
22 
23 MockRepresentation::MockRepresentation(uint32_t representation_id)
24  : Representation(MediaInfo(),
25  kDefaultMpdOptions,
26  representation_id,
27  std::unique_ptr<RepresentationStateChangeListener>()) {}
28 MockRepresentation::~MockRepresentation() {}
29 
30 } // namespace shaka