OLD | NEW |
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 Loading... |
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 |
OLD | NEW |