Remove ImplForTesting function from MediaChannel

It is not used any more.

Bug: webrtc:13931
Change-Id: I266de41abe239907c6d65f4b182a8dc3aacaba3d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/308022
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40234}
This commit is contained in:
Harald Alvestrand 2023-06-06 12:12:10 +00:00 committed by WebRTC LUCI CQ
parent bd66cfe5de
commit 09e0086d26
5 changed files with 0 additions and 50 deletions

View File

@ -255,10 +255,6 @@ class MediaSendChannelInterface {
// TODO(bugs.webrtc.org/13931): Remove when configuration is more sensible
virtual void SetSendCodecChangedCallback(
absl::AnyInvocable<void()> callback) = 0;
// Get the underlying send/receive implementation channel for testing.
// TODO(bugs.webrtc.org/13931): Remove method and the fakes that depend on it.
virtual MediaChannel* ImplForTesting() = 0;
};
class MediaReceiveChannelInterface : public Delayable {
@ -313,9 +309,6 @@ class MediaReceiveChannelInterface : public Delayable {
uint32_t ssrc,
rtc::scoped_refptr<webrtc::FrameTransformerInterface>
frame_transformer) = 0;
// Get the underlying send/receive implementation channel for testing.
// TODO(bugs.webrtc.org/13931): Remove method and the fakes that depend on it.
virtual MediaChannel* ImplForTesting() = 0;
};
// The stats information is structured as follows:

View File

@ -302,10 +302,6 @@ class VideoMediaChannel : public MediaChannel,
bool HasNetworkInterface() const override {
return MediaChannel::HasNetworkInterface();
}
MediaChannel* ImplForTesting() override {
// This class and its subclasses are not interface classes.
RTC_CHECK_NOTREACHED();
}
};
// Base class for implementation classes
@ -379,13 +375,6 @@ class VoiceMediaChannel : public MediaChannel,
bool get_and_clear_legacy_stats) override {
return GetReceiveStats(info, get_and_clear_legacy_stats);
}
private:
// Functions not implemented on this interface
MediaChannel* ImplForTesting() override {
// This class and its subclasses are not interface classes.
RTC_CHECK_NOTREACHED();
}
};
} // namespace cricket

View File

@ -83,12 +83,6 @@ class VoiceMediaShimChannel : public VoiceMediaChannel {
}
}
// Not really valid for this mode
MediaChannel* ImplForTesting() override {
RTC_CHECK_NOTREACHED();
return nullptr;
}
// Implementation of MediaBaseChannelInterface
cricket::MediaType media_type() const override { return MEDIA_TYPE_AUDIO; }
@ -331,12 +325,6 @@ class VideoMediaShimChannel : public VideoMediaChannel {
}
}
// Not really valid for this mode
MediaChannel* ImplForTesting() override {
RTC_CHECK_NOTREACHED();
return nullptr;
}
// Implementation of MediaBaseChannelInterface
cricket::MediaType media_type() const override { return MEDIA_TYPE_VIDEO; }

View File

@ -478,11 +478,6 @@ class WebRtcVideoSendChannel : public MediaChannelUtil,
const absl::optional<VideoCodecSettings>& send_codec() const {
return send_codec_;
}
// Disabled function from interface
MediaChannel* ImplForTesting() override {
RTC_CHECK_NOTREACHED();
return nullptr;
}
webrtc::TaskQueueBase* const worker_thread_;
webrtc::ScopedTaskSafety task_safety_;
RTC_NO_UNIQUE_ADDRESS webrtc::SequenceChecker network_thread_checker_{
@ -834,12 +829,6 @@ class WebRtcVideoReceiveChannel : public MediaChannelUtil,
RTC_DCHECK_RUN_ON(&thread_checker_);
return unsignaled_stream_params_;
}
// Disabled function from API
MediaChannel* ImplForTesting() override {
RTC_CHECK_NOTREACHED();
return nullptr;
}
// Variables.
webrtc::TaskQueueBase* const worker_thread_;
webrtc::ScopedTaskSafety task_safety_;

View File

@ -302,10 +302,6 @@ class WebRtcVoiceSendChannel final : public MediaChannelUtil,
absl::AnyInvocable<void()> callback) override {
send_codec_changed_callback_ = std::move(callback);
}
MediaChannel* ImplForTesting() override {
RTC_CHECK_NOTREACHED();
return nullptr;
}
private:
bool SetOptions(const AudioOptions& options);
@ -458,11 +454,6 @@ class WebRtcVoiceReceiveChannel final
void SetReceiveNackEnabled(bool enabled) override;
void SetReceiveNonSenderRttEnabled(bool enabled) override;
MediaChannel* ImplForTesting() override {
RTC_CHECK_NOTREACHED();
return nullptr;
}
private:
bool SetOptions(const AudioOptions& options);
bool SetRecvCodecs(const std::vector<AudioCodec>& codecs);