| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/test/simple_test_tick_clock.h" | 8 #include "base/test/simple_test_tick_clock.h" |
| 9 #include "media/cast/framer/cast_message_builder.h" | 9 #include "media/cast/net/rtcp/rtcp.h" |
| 10 #include "media/cast/rtcp/rtcp.h" | 10 #include "media/cast/net/rtp/cast_message_builder.h" |
| 11 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" | 11 #include "media/cast/net/rtp/rtp_receiver_defines.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 namespace cast { | 15 namespace cast { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 static const uint32 kSsrc = 0x1234; | 18 static const uint32 kSsrc = 0x1234; |
| 19 static const uint32 kShortTimeIncrementMs = 10; | 19 static const uint32 kShortTimeIncrementMs = 10; |
| 20 static const uint32 kLongTimeIncrementMs = 40; | 20 static const uint32 kLongTimeIncrementMs = 40; |
| 21 static const int64 kStartMillisecond = INT64_C(12345678900000); | 21 static const int64 kStartMillisecond = INT64_C(12345678900000); |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 SetFrameIds(frame_id, frame_id - 1); | 420 SetFrameIds(frame_id, frame_id - 1); |
| 421 InsertPacket(); | 421 InsertPacket(); |
| 422 testing_clock_.Advance( | 422 testing_clock_.Advance( |
| 423 base::TimeDelta::FromMilliseconds(kShortTimeIncrementMs)); | 423 base::TimeDelta::FromMilliseconds(kShortTimeIncrementMs)); |
| 424 EXPECT_TRUE(feedback_.triggered()); | 424 EXPECT_TRUE(feedback_.triggered()); |
| 425 EXPECT_EQ(frame_id, feedback_.last_frame_acked()); | 425 EXPECT_EQ(frame_id, feedback_.last_frame_acked()); |
| 426 } | 426 } |
| 427 | 427 |
| 428 } // namespace cast | 428 } // namespace cast |
| 429 } // namespace media | 429 } // namespace media |
| OLD | NEW |