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

Unified Diff: media/cast/net/rtp/packet_storage_unittest.cc

Issue 1487223002: Change PacketKey to be unique for each frame packet by including (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « media/cast/net/pacing/paced_sender_unittest.cc ('k') | media/cast/net/rtp/rtp_packetizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtp/packet_storage_unittest.cc
diff --git a/media/cast/net/rtp/packet_storage_unittest.cc b/media/cast/net/rtp/packet_storage_unittest.cc
index 7dc5a53a0effd46cd14a42857b988d54c921e9e4..fe8293c7a372ddcd107fcfdcf71c9c2d332b2edb 100644
--- a/media/cast/net/rtp/packet_storage_unittest.cc
+++ b/media/cast/net/rtp/packet_storage_unittest.cc
@@ -32,10 +32,10 @@ static void StoreFrames(size_t number_of_frames,
const size_t kNumberOfPackets = i + 1;
for (size_t j = 0; j < kNumberOfPackets; ++j) {
Packet test_packet(1, 0);
- packets.push_back(
- std::make_pair(PacedPacketSender::MakePacketKey(
- kTicks, kSsrc, base::checked_cast<uint16>(j)),
- new base::RefCountedData<Packet>(test_packet)));
+ packets.push_back(std::make_pair(
+ PacedPacketSender::MakePacketKey(PacketKey::RTP, i, kSsrc,
+ base::checked_cast<uint16>(j)),
+ new base::RefCountedData<Packet>(test_packet)));
}
storage->StoreFrame(first_frame_id, packets);
++first_frame_id;
« no previous file with comments | « media/cast/net/pacing/paced_sender_unittest.cc ('k') | media/cast/net/rtp/rtp_packetizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698