OLD | NEW |
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 Loading... |
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 |
OLD | NEW |