2023-10-11 08:49:50 +00:00
|
|
|
// Copyright 2023 Google LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
2023-10-10 23:51:11 +00:00
|
|
|
#include <packager/mpd/base/mock_mpd_builder.h>
|
2015-07-16 06:51:24 +00:00
|
|
|
|
2023-10-10 23:51:11 +00:00
|
|
|
#include <packager/mpd/base/media_info.pb.h>
|
2015-07-16 06:51:24 +00:00
|
|
|
|
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;
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
// Doesn't matter what values get passed to the super class' constructor.
|
|
|
|
// All methods used for testing should be mocked.
|
2016-12-21 23:28:56 +00:00
|
|
|
MockMpdBuilder::MockMpdBuilder() : MpdBuilder(kDefaultMpdOptions) {}
|
2015-07-16 06:51:24 +00:00
|
|
|
MockMpdBuilder::~MockMpdBuilder() {}
|
|
|
|
|
2018-01-03 00:10:54 +00:00
|
|
|
MockPeriod::MockPeriod(uint32_t period_id, double start_time_in_seconds)
|
|
|
|
: Period(period_id,
|
|
|
|
start_time_in_seconds,
|
|
|
|
kDefaultMpdOptions,
|
|
|
|
&sequence_counter_) {}
|
2017-12-14 01:00:11 +00:00
|
|
|
|
2018-01-25 23:04:59 +00:00
|
|
|
MockAdaptationSet::MockAdaptationSet()
|
|
|
|
: AdaptationSet(kEmptyLang, kDefaultMpdOptions, &sequence_counter_) {}
|
2020-03-18 02:33:44 +00:00
|
|
|
|
2015-07-16 06:51:24 +00:00
|
|
|
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
|