зеркало из https://github.com/mozilla/gecko-dev.git
Bug 925226 - Fix incorrect downcast in signaling unittest. r=abr
This commit is contained in:
Родитель
2d1f733ef9
Коммит
745cbfc6f6
|
@ -81,6 +81,7 @@ class Fake_MediaStream {
|
|||
|
||||
virtual nsresult Start() { return NS_OK; }
|
||||
virtual nsresult Stop() { return NS_OK; }
|
||||
virtual void StopStream() {}
|
||||
|
||||
virtual void Periodic() {}
|
||||
|
||||
|
@ -175,7 +176,7 @@ class Fake_SourceMediaStream : public Fake_MediaStream {
|
|||
void RemoveDirectListener(Fake_MediaStreamListener* aListener) {}
|
||||
|
||||
//Don't pull anymore data,if mStop is true.
|
||||
void StopStream() {
|
||||
virtual void StopStream() {
|
||||
mStop = true;
|
||||
}
|
||||
|
||||
|
@ -264,7 +265,6 @@ class Fake_MediaStreamBase : public Fake_MediaStream {
|
|||
virtual nsresult Start();
|
||||
virtual nsresult Stop();
|
||||
|
||||
|
||||
virtual int GetSegmentsAdded() {
|
||||
return mPeriodic->GetTimesCalled();
|
||||
}
|
||||
|
|
|
@ -1027,7 +1027,7 @@ void CreateAnswer(sipcc::MediaConstraints& constraints, std::string offer,
|
|||
//Stops generating new audio data for transmission.
|
||||
//Should be called before Cleanup of the peer connection.
|
||||
void CloseSendStreams() {
|
||||
static_cast<Fake_AudioStreamSource*>(
|
||||
static_cast<Fake_MediaStream*>(
|
||||
domMediaStream_->GetStream())->StopStream();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче