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

Side by Side Diff: media/cast/rtp_receiver/receiver_stats_unittest.cc

Issue 112133002: Cast:Moving netwrok sender related code to a designated folder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moving const' to .cc Created 7 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 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 <gtest/gtest.h> 5 #include <gtest/gtest.h>
6 6
7 #include "base/test/simple_test_tick_clock.h" 7 #include "base/test/simple_test_tick_clock.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "media/cast/rtp_common/rtp_defines.h"
10 #include "media/cast/rtp_receiver/receiver_stats.h" 9 #include "media/cast/rtp_receiver/receiver_stats.h"
10 #include "media/cast/rtp_receiver/rtp_receiver_defines.h"
11 11
12 namespace media { 12 namespace media {
13 namespace cast { 13 namespace cast {
14 14
15 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); 15 static const int64 kStartMillisecond = GG_INT64_C(12345678900000);
16 static const uint32 kStdTimeIncrementMs = 33; 16 static const uint32 kStdTimeIncrementMs = 33;
17 17
18 class ReceiverStatsTest : public ::testing::Test { 18 class ReceiverStatsTest : public ::testing::Test {
19 protected: 19 protected:
20 ReceiverStatsTest() 20 ReceiverStatsTest()
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 EXPECT_FALSE(cumulative_lost_); 161 EXPECT_FALSE(cumulative_lost_);
162 // Build extended sequence number (one wrap cycle). 162 // Build extended sequence number (one wrap cycle).
163 uint32 extended_seq_num = rtp_header_.webrtc.header.sequenceNumber - 1; 163 uint32 extended_seq_num = rtp_header_.webrtc.header.sequenceNumber - 1;
164 EXPECT_EQ(extended_seq_num, extended_high_sequence_number_); 164 EXPECT_EQ(extended_seq_num, extended_high_sequence_number_);
165 EXPECT_EQ( 165 EXPECT_EQ(
166 ExpectedJitter(kStdTimeIncrementMs + kAdditionalIncrement, 300), jitter_); 166 ExpectedJitter(kStdTimeIncrementMs + kAdditionalIncrement, 300), jitter_);
167 } 167 }
168 168
169 } // namespace cast 169 } // namespace cast
170 } // namespace media 170 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/rtp_receiver/receiver_stats.cc ('k') | media/cast/rtp_receiver/rtp_parser/rtp_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698