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

Unified Diff: talk/media/base/fakenetworkinterface.h

Issue 1327933003: Enable probing with repeated payload packets by default. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing yet another flake in libjingle tests. Created 5 years, 3 months 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 | « no previous file | talk/media/base/videoengine_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/base/fakenetworkinterface.h
diff --git a/talk/media/base/fakenetworkinterface.h b/talk/media/base/fakenetworkinterface.h
index 424101e419560c4a8cfae6664770f3e326d2580a..5178e67eeb1da95435ef22defbc33a414f88f70a 100644
--- a/talk/media/base/fakenetworkinterface.h
+++ b/talk/media/base/fakenetworkinterface.h
@@ -123,11 +123,6 @@ class FakeNetworkInterface : public MediaChannel::NetworkInterface,
return new rtc::Buffer(rtcp_packets_[index]);
}
- // Indicate that |n|'th packet for |ssrc| should be dropped.
- void AddPacketDrop(uint32 ssrc, uint32 n) {
- drop_map_[ssrc].insert(n);
- }
-
int sendbuf_size() const { return sendbuf_size_; }
int recvbuf_size() const { return recvbuf_size_; }
rtc::DiffServCodePoint dscp() const { return dscp_; }
@@ -143,15 +138,6 @@ class FakeNetworkInterface : public MediaChannel::NetworkInterface,
}
sent_ssrcs_[cur_ssrc]++;
- // Check if we need to drop this packet.
- std::map<uint32, std::set<uint32> >::iterator itr =
- drop_map_.find(cur_ssrc);
- if (itr != drop_map_.end() &&
- itr->second.count(sent_ssrcs_[cur_ssrc]) > 0) {
- // "Drop" the packet.
- return true;
- }
-
rtp_packets_.push_back(*packet);
if (conf_) {
rtc::Buffer buffer_copy(*packet);
« no previous file with comments | « no previous file | talk/media/base/videoengine_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698