Bug 1196974: remove mozDontOfferDataChannel from code and test. r=bwc

MozReview-Commit-ID: 1CW3TaSMVZw

--HG--
extra : rebase_source : dc0e069e07d28dc53c4ba57954491bb5a663b518
This commit is contained in:
Nils Ohlmeier [:drno] 2017-07-18 14:24:33 +02:00
Родитель 9af5eae853
Коммит e49209f98a
4 изменённых файлов: 3 добавлений и 13 удалений

Просмотреть файл

@ -2953,7 +2953,6 @@ TEST_F(JsepSessionTest, OfferAnswerRecvOnlyLines)
JsepOfferOptions options;
options.mOfferToReceiveAudio = Some(static_cast<size_t>(1U));
options.mOfferToReceiveVideo = Some(static_cast<size_t>(2U));
options.mDontOfferDataChannel = Some(true);
std::string offer = CreateOffer(Some(options));
UniquePtr<Sdp> parsedOffer(Parse(offer));
@ -3030,7 +3029,6 @@ TEST_F(JsepSessionTest, OfferAnswerSendOnlyLines)
JsepOfferOptions options;
options.mOfferToReceiveAudio = Some(static_cast<size_t>(0U));
options.mOfferToReceiveVideo = Some(static_cast<size_t>(1U));
options.mDontOfferDataChannel = Some(true);
std::string offer = CreateOffer(Some(options));
UniquePtr<Sdp> outputSdp(Parse(offer));

Просмотреть файл

@ -49,7 +49,6 @@ struct JsepOAOptions {};
struct JsepOfferOptions : public JsepOAOptions {
Maybe<size_t> mOfferToReceiveAudio;
Maybe<size_t> mOfferToReceiveVideo;
Maybe<bool> mDontOfferDataChannel;
Maybe<bool> mIceRestart; // currently ignored by JsepSession
};
struct JsepAnswerOptions : public JsepOAOptions {};

Просмотреть файл

@ -428,13 +428,10 @@ JsepSessionImpl::SetupOfferMSections(const JsepOfferOptions& options, Sdp* sdp)
NS_ENSURE_SUCCESS(rv, rv);
if (!(options.mDontOfferDataChannel.isSome() &&
*options.mDontOfferDataChannel)) {
rv = SetupOfferMSectionsByType(
SdpMediaSection::kApplication, Maybe<size_t>(), sdp);
rv = SetupOfferMSectionsByType(
SdpMediaSection::kApplication, Maybe<size_t>(), sdp);
NS_ENSURE_SUCCESS(rv, rv);
}
NS_ENSURE_SUCCESS(rv, rv);
if (!sdp->GetMediaSectionCount()) {
JSEP_SET_ERROR("Cannot create an offer with no local tracks, "

Просмотреть файл

@ -1461,10 +1461,6 @@ PeerConnectionImpl::CreateOffer(const RTCOfferOptions& aOptions)
options.mIceRestart = mozilla::Some(aOptions.mIceRestart);
if (aOptions.mMozDontOfferDataChannel.WasPassed()) {
options.mDontOfferDataChannel =
mozilla::Some(aOptions.mMozDontOfferDataChannel.Value());
}
return CreateOffer(options);
}