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

Unified Diff: media/cast/net/rtcp/rtcp_sender_unittest.cc

Issue 404323002: Cast: Build cast targets with GN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 6 years, 5 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 | « media/cast/net/rtcp/rtcp_receiver_unittest.cc ('k') | media/cast/net/rtp/frame_buffer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtcp/rtcp_sender_unittest.cc
diff --git a/media/cast/net/rtcp/rtcp_sender_unittest.cc b/media/cast/net/rtcp/rtcp_sender_unittest.cc
index b78915d4d5ca586e3bff9eaa43014126c491cd0b..acc9cd046c425d733dba7cb296c4ece995a4f4eb 100644
--- a/media/cast/net/rtcp/rtcp_sender_unittest.cc
+++ b/media/cast/net/rtcp/rtcp_sender_unittest.cc
@@ -48,8 +48,10 @@ class TestRtcpTransport : public PacedPacketSender {
virtual bool SendRtcpPacket(uint32 ssrc,
PacketRef packet) OVERRIDE {
EXPECT_EQ(expected_packet_.size(), packet->data.size());
- EXPECT_EQ(0, memcmp(expected_packet_.data(),
- packet->data.data(),
+ if (expected_packet_.size() != packet->data.size())
+ return false;
+ EXPECT_EQ(0, memcmp(&expected_packet_[0],
+ &packet->data[0],
packet->data.size()));
packet_count_++;
return true;
« no previous file with comments | « media/cast/net/rtcp/rtcp_receiver_unittest.cc ('k') | media/cast/net/rtp/frame_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698