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

Side by Side Diff: media/cast/net/rtcp/rtcp_receiver_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, 4 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 | Annotate | Revision Log
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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/test/simple_test_tick_clock.h" 6 #include "base/test/simple_test_tick_clock.h"
7 #include "media/cast/cast_environment.h" 7 #include "media/cast/cast_environment.h"
8 #include "media/cast/net/cast_transport_defines.h" 8 #include "media/cast/net/cast_transport_defines.h"
9 #include "media/cast/net/rtcp/mock_rtcp_receiver_feedback.h" 9 #include "media/cast/net/rtcp/mock_rtcp_receiver_feedback.h"
10 #include "media/cast/net/rtcp/rtcp_receiver.h" 10 #include "media/cast/net/rtcp/rtcp_receiver.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 EXPECT_TRUE(frame_it != cast_message.missing_frames_and_packets.end()); 83 EXPECT_TRUE(frame_it != cast_message.missing_frames_and_packets.end());
84 EXPECT_EQ(kFrameIdWithLostPackets, frame_it->first); 84 EXPECT_EQ(kFrameIdWithLostPackets, frame_it->first);
85 EXPECT_EQ(3UL, frame_it->second.size()); 85 EXPECT_EQ(3UL, frame_it->second.size());
86 PacketIdSet::const_iterator packet_it = frame_it->second.begin(); 86 PacketIdSet::const_iterator packet_it = frame_it->second.begin();
87 EXPECT_EQ(kLostPacketId1, *packet_it); 87 EXPECT_EQ(kLostPacketId1, *packet_it);
88 ++packet_it; 88 ++packet_it;
89 EXPECT_EQ(kLostPacketId2, *packet_it); 89 EXPECT_EQ(kLostPacketId2, *packet_it);
90 ++packet_it; 90 ++packet_it;
91 EXPECT_EQ(kLostPacketId3, *packet_it); 91 EXPECT_EQ(kLostPacketId3, *packet_it);
92 ++frame_it; 92 ++frame_it;
93 EXPECT_EQ(frame_it, cast_message.missing_frames_and_packets.end()); 93 EXPECT_TRUE(frame_it == cast_message.missing_frames_and_packets.end());
94 called_on_received_cast_message_ = true; 94 called_on_received_cast_message_ = true;
95 } 95 }
96 96
97 bool OnReceivedReceiverLogCalled() const { 97 bool OnReceivedReceiverLogCalled() const {
98 return called_on_received_receiver_log_ && expected_receiver_log_.empty(); 98 return called_on_received_receiver_log_ && expected_receiver_log_.empty();
99 } 99 }
100 100
101 bool OnReceivedCastFeedbackCalled() const { 101 bool OnReceivedCastFeedbackCalled() const {
102 return called_on_received_cast_message_; 102 return called_on_received_cast_message_;
103 } 103 }
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 OnReceivedDelaySinceLastReport(kLastSr, kDelayLastSr)).Times(1); 487 OnReceivedDelaySinceLastReport(kLastSr, kDelayLastSr)).Times(1);
488 488
489 RtcpParser rtcp_parser(p.Data(), p.Length()); 489 RtcpParser rtcp_parser(p.Data(), p.Length());
490 rtcp_receiver.IncomingRtcpPacket(&rtcp_parser); 490 rtcp_receiver.IncomingRtcpPacket(&rtcp_parser);
491 491
492 EXPECT_TRUE(verification.OnReceivedReceiverLogCalled()); 492 EXPECT_TRUE(verification.OnReceivedReceiverLogCalled());
493 } 493 }
494 494
495 } // namespace cast 495 } // namespace cast
496 } // namespace media 496 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/logging/stats_event_subscriber_unittest.cc ('k') | media/cast/net/rtcp/rtcp_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698