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

Side by Side Diff: media/cast/rtcp/rtcp_unittest.cc

Issue 24586003: Be able to build cast_unittest and related targets in Chrome tree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix warnings 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/test/simple_test_tick_clock.h" 5 #include "base/test/simple_test_tick_clock.h"
6 #include "media/cast/cast_defines.h" 6 #include "media/cast/cast_defines.h"
7 #include "media/cast/pacing/paced_sender.h" 7 #include "media/cast/pacing/paced_sender.h"
8 #include "media/cast/rtcp/mock_rtcp_receiver_feedback.h" 8 #include "media/cast/rtcp/mock_rtcp_receiver_feedback.h"
9 #include "media/cast/rtcp/mock_rtcp_sender_feedback.h" 9 #include "media/cast/rtcp/mock_rtcp_sender_feedback.h"
10 #include "media/cast/rtcp/rtcp.h" 10 #include "media/cast/rtcp/rtcp.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 }; 89 };
90 90
91 class RtcpTest : public ::testing::Test { 91 class RtcpTest : public ::testing::Test {
92 protected: 92 protected:
93 RtcpTest() 93 RtcpTest()
94 : transport_(&testing_clock_) { 94 : transport_(&testing_clock_) {
95 testing_clock_.Advance( 95 testing_clock_.Advance(
96 base::TimeDelta::FromMilliseconds(kStartMillisecond)); 96 base::TimeDelta::FromMilliseconds(kStartMillisecond));
97 } 97 }
98 98
99 ~RtcpTest() {} 99 virtual ~RtcpTest() {}
100 100
101 void SetUp() { 101 virtual void SetUp() {
102 EXPECT_CALL(mock_sender_feedback_, OnReceivedReportBlock(_)).Times(0); 102 EXPECT_CALL(mock_sender_feedback_, OnReceivedReportBlock(_)).Times(0);
103 EXPECT_CALL(mock_sender_feedback_, OnReceivedIntraFrameRequest()).Times(0); 103 EXPECT_CALL(mock_sender_feedback_, OnReceivedIntraFrameRequest()).Times(0);
104 EXPECT_CALL(mock_sender_feedback_, OnReceivedRpsi(_, _)).Times(0); 104 EXPECT_CALL(mock_sender_feedback_, OnReceivedRpsi(_, _)).Times(0);
105 EXPECT_CALL(mock_sender_feedback_, OnReceivedRemb(_)).Times(0); 105 EXPECT_CALL(mock_sender_feedback_, OnReceivedRemb(_)).Times(0);
106 EXPECT_CALL(mock_sender_feedback_, OnReceivedNackRequest(_)).Times(0); 106 EXPECT_CALL(mock_sender_feedback_, OnReceivedNackRequest(_)).Times(0);
107 EXPECT_CALL(mock_sender_feedback_, OnReceivedCastFeedback(_)).Times(0); 107 EXPECT_CALL(mock_sender_feedback_, OnReceivedCastFeedback(_)).Times(0);
108 } 108 }
109 109
110 base::SimpleTestTickClock testing_clock_; 110 base::SimpleTestTickClock testing_clock_;
111 LocalRtcpTransport transport_; 111 LocalRtcpTransport transport_;
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 rtcp_peer.OnReceivedLipSyncInfo(rtp_timestamp, ntp_seconds, ntp_fractions); 401 rtcp_peer.OnReceivedLipSyncInfo(rtp_timestamp, ntp_seconds, ntp_fractions);
402 rtp_timestamp = 64000; 402 rtp_timestamp = 64000;
403 EXPECT_TRUE(rtcp_peer.RtpTimestampInSenderTime(frequency, rtp_timestamp, 403 EXPECT_TRUE(rtcp_peer.RtpTimestampInSenderTime(frequency, rtp_timestamp,
404 &rtp_timestamp_in_ticks)); 404 &rtp_timestamp_in_ticks));
405 EXPECT_EQ(input_time + base::TimeDelta::FromMilliseconds(4000), 405 EXPECT_EQ(input_time + base::TimeDelta::FromMilliseconds(4000),
406 rtp_timestamp_in_ticks); 406 rtp_timestamp_in_ticks);
407 } 407 }
408 408
409 } // namespace cast 409 } // namespace cast
410 } // namespace media 410 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698