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

Side by Side Diff: chrome/browser/media/cast_transport_host_filter_unittest.cc

Issue 343523005: Cast: Avoid retransmit if we sent the same packet recently (less than RTT) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bugfix Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.cc ('k') | chrome/common/cast_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/callback.h" 5 #include "base/callback.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/time/default_tick_clock.h" 7 #include "base/time/default_tick_clock.h"
8 #include "chrome/browser/media/cast_transport_host_filter.h" 8 #include "chrome/browser/media/cast_transport_host_filter.h"
9 #include "content/public/test/test_browser_thread_bundle.h" 9 #include "content/public/test/test_browser_thread_bundle.h"
10 #include "media/cast/logging/logging_defines.h" 10 #include "media/cast/logging/logging_defines.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 dlrr.last_rr = 7; 125 dlrr.last_rr = 7;
126 dlrr.delay_since_last_rr = 8; 126 dlrr.delay_since_last_rr = 8;
127 CastHostMsg_SendRtcpFromRtpSender rtcp_msg( 127 CastHostMsg_SendRtcpFromRtpSender rtcp_msg(
128 kChannelId, rtcp_data, dlrr); 128 kChannelId, rtcp_data, dlrr);
129 FakeSend(rtcp_msg); 129 FakeSend(rtcp_msg);
130 130
131 media::cast::MissingFramesAndPacketsMap missing_packets; 131 media::cast::MissingFramesAndPacketsMap missing_packets;
132 missing_packets[1].insert(4); 132 missing_packets[1].insert(4);
133 missing_packets[1].insert(7); 133 missing_packets[1].insert(7);
134 CastHostMsg_ResendPackets resend_msg( 134 CastHostMsg_ResendPackets resend_msg(
135 kChannelId, false, missing_packets, true); 135 kChannelId, false, missing_packets, true, base::TimeDelta());
136 FakeSend(resend_msg); 136 FakeSend(resend_msg);
137 137
138 CastHostMsg_Delete delete_msg(kChannelId); 138 CastHostMsg_Delete delete_msg(kChannelId);
139 FakeSend(delete_msg); 139 FakeSend(delete_msg);
140 } 140 }
141 141
142 } // namespace 142 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.cc ('k') | chrome/common/cast_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698