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

Side by Side Diff: trunk/src/media/cast/rtcp/rtcp_receiver_unittest.cc

Issue 25546003: Revert 226264 "Be able to build cast_unittest and related target..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "media/cast/rtcp/mock_rtcp_receiver_feedback.h" 6 #include "media/cast/rtcp/mock_rtcp_receiver_feedback.h"
7 #include "media/cast/rtcp/mock_rtcp_sender_feedback.h" 7 #include "media/cast/rtcp/mock_rtcp_sender_feedback.h"
8 #include "media/cast/rtcp/rtcp_receiver.h" 8 #include "media/cast/rtcp/rtcp_receiver.h"
9 #include "media/cast/rtcp/rtcp_utility.h" 9 #include "media/cast/rtcp/rtcp_utility.h"
10 #include "media/cast/rtcp/test_rtcp_packet_builder.h" 10 #include "media/cast/rtcp/test_rtcp_packet_builder.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 class RtcpReceiverTest : public ::testing::Test { 68 class RtcpReceiverTest : public ::testing::Test {
69 protected: 69 protected:
70 RtcpReceiverTest() 70 RtcpReceiverTest()
71 : rtcp_receiver_(new RtcpReceiver(&mock_sender_feedback_, 71 : rtcp_receiver_(new RtcpReceiver(&mock_sender_feedback_,
72 &mock_receiver_feedback_, 72 &mock_receiver_feedback_,
73 &mock_rtt_feedback_, 73 &mock_rtt_feedback_,
74 kSourceSsrc)) { 74 kSourceSsrc)) {
75 } 75 }
76 76
77 virtual ~RtcpReceiverTest() {} 77 ~RtcpReceiverTest() {}
78 78
79 virtual void SetUp() OVERRIDE { 79 void SetUp() OVERRIDE {
80 EXPECT_CALL(mock_receiver_feedback_, OnReceivedSenderReport(_)).Times(0); 80 EXPECT_CALL(mock_receiver_feedback_, OnReceivedSenderReport(_)).Times(0);
81 EXPECT_CALL(mock_receiver_feedback_, 81 EXPECT_CALL(mock_receiver_feedback_,
82 OnReceiverReferenceTimeReport(_)).Times(0); 82 OnReceiverReferenceTimeReport(_)).Times(0);
83 EXPECT_CALL(mock_receiver_feedback_, 83 EXPECT_CALL(mock_receiver_feedback_,
84 OnReceivedSendReportRequest()).Times(0); 84 OnReceivedSendReportRequest()).Times(0);
85 85
86 EXPECT_CALL(mock_sender_feedback_, OnReceivedReportBlock(_)).Times(0); 86 EXPECT_CALL(mock_sender_feedback_, OnReceivedReportBlock(_)).Times(0);
87 EXPECT_CALL(mock_sender_feedback_, OnReceivedIntraFrameRequest()).Times(0); 87 EXPECT_CALL(mock_sender_feedback_, OnReceivedIntraFrameRequest()).Times(0);
88 EXPECT_CALL(mock_sender_feedback_, OnReceivedRpsi(_, _)).Times(0); 88 EXPECT_CALL(mock_sender_feedback_, OnReceivedRpsi(_, _)).Times(0);
89 EXPECT_CALL(mock_sender_feedback_, OnReceivedRemb(_)).Times(0); 89 EXPECT_CALL(mock_sender_feedback_, OnReceivedRemb(_)).Times(0);
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 // Expected to be pass through since the sender ssrc match our local ssrc. 372 // Expected to be pass through since the sender ssrc match our local ssrc.
373 RtcpParser rtcp_parser(p.Packet(), p.Length()); 373 RtcpParser rtcp_parser(p.Packet(), p.Length());
374 rtcp_receiver.IncomingRtcpPacket(&rtcp_parser); 374 rtcp_receiver.IncomingRtcpPacket(&rtcp_parser);
375 375
376 EXPECT_TRUE(sender_feedback_cast_verification.called()); 376 EXPECT_TRUE(sender_feedback_cast_verification.called());
377 } 377 }
378 378
379 } // namespace cast 379 } // namespace cast
380 } // namespace media 380 } // namespace media
OLDNEW
« no previous file with comments | « trunk/src/media/cast/rtcp/mock_rtcp_sender_feedback.cc ('k') | trunk/src/media/cast/rtcp/rtcp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698