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/framer/cast_message_builder_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: 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 "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/framer/cast_message_builder.h" 7 #include "media/cast/framer/cast_message_builder.h"
8 #include "media/cast/rtcp/rtcp.h" 8 #include "media/cast/rtcp/rtcp.h"
9 #include "media/cast/rtp_common/rtp_defines.h" 9 #include "media/cast/rtp_receiver/rtp_receiver_defines.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace media { 12 namespace media {
13 namespace cast { 13 namespace cast {
14 14
15 static const uint32 kSsrc = 0x1234; 15 static const uint32 kSsrc = 0x1234;
16 static const uint32 kShortTimeIncrementMs = 10; 16 static const uint32 kShortTimeIncrementMs = 10;
17 static const uint32 kLongTimeIncrementMs = 40; 17 static const uint32 kLongTimeIncrementMs = 40;
18 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); 18 static const int64 kStartMillisecond = GG_INT64_C(12345678900000);
19 19
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 SetFrameId(frame_id); 505 SetFrameId(frame_id);
506 InsertPacket(); 506 InsertPacket();
507 testing_clock_.Advance( 507 testing_clock_.Advance(
508 base::TimeDelta::FromMilliseconds(kShortTimeIncrementMs)); 508 base::TimeDelta::FromMilliseconds(kShortTimeIncrementMs));
509 EXPECT_TRUE(feedback_.triggered()); 509 EXPECT_TRUE(feedback_.triggered());
510 EXPECT_EQ(frame_id, feedback_.last_frame_acked()); 510 EXPECT_EQ(frame_id, feedback_.last_frame_acked());
511 } 511 }
512 512
513 } // namespace cast 513 } // namespace cast
514 } // namespace media 514 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698