Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1172)

Unified Diff: webrtc/media/engine/fakewebrtcvoiceengine.h

Issue 2461523002: Remove usage of VoEBase::AssociateSendChannel() from WVoMC. (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/call/call_unittest.cc ('k') | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/engine/fakewebrtcvoiceengine.h
diff --git a/webrtc/media/engine/fakewebrtcvoiceengine.h b/webrtc/media/engine/fakewebrtcvoiceengine.h
index 26419040f16f1deda0a3bd3f1d05dc3f7a982376..cd6c42064a1bd9a2da8750d0c73b8eb4df4d6029 100644
--- a/webrtc/media/engine/fakewebrtcvoiceengine.h
+++ b/webrtc/media/engine/fakewebrtcvoiceengine.h
@@ -57,7 +57,6 @@ class FakeWebRtcVoiceEngine
public webrtc::VoEVolumeControl {
public:
struct Channel {
- int associate_send_channel = -1;
std::vector<webrtc::CodecInst> recv_codecs;
size_t neteq_capacity = 0;
bool neteq_fast_accelerate = false;
@@ -79,10 +78,6 @@ class FakeWebRtcVoiceEngine
fail_create_channel_ = fail_create_channel;
}
- int GetAssociateSendChannel(int channel) {
- return channels_[channel]->associate_send_channel;
- }
-
WEBRTC_STUB(Release, ());
// webrtc::VoEBase
@@ -125,11 +120,6 @@ class FakeWebRtcVoiceEngine
}
WEBRTC_FUNC(DeleteChannel, (int channel)) {
WEBRTC_CHECK_CHANNEL(channel);
- for (const auto& ch : channels_) {
- if (ch.second->associate_send_channel == channel) {
- ch.second->associate_send_channel = -1;
- }
- }
delete channels_[channel];
channels_.erase(channel);
return 0;
@@ -142,12 +132,8 @@ class FakeWebRtcVoiceEngine
WEBRTC_STUB(StopSend, (int channel));
WEBRTC_STUB(GetVersion, (char version[1024]));
WEBRTC_STUB(LastError, ());
- WEBRTC_FUNC(AssociateSendChannel, (int channel,
- int accociate_send_channel)) {
- WEBRTC_CHECK_CHANNEL(channel);
- channels_[channel]->associate_send_channel = accociate_send_channel;
- return 0;
- }
+ WEBRTC_STUB(AssociateSendChannel, (int channel,
+ int accociate_send_channel));
// webrtc::VoECodec
WEBRTC_STUB(NumOfCodecs, ());
« no previous file with comments | « webrtc/call/call_unittest.cc ('k') | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698