OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 EXPECT_EQ(29805, InsertFrame(29805, 0, 1, false, 29804)); | 509 EXPECT_EQ(29805, InsertFrame(29805, 0, 1, false, 29804)); |
510 ExtractFrame(); | 510 ExtractFrame(); |
511 EXPECT_EQ(29806, InsertFrame(29806, 0, 1, false, 29805)); | 511 EXPECT_EQ(29806, InsertFrame(29806, 0, 1, false, 29805)); |
512 ExtractFrame(); | 512 ExtractFrame(); |
513 EXPECT_EQ(33819, InsertFrame(33819, 0, 1, false)); | 513 EXPECT_EQ(33819, InsertFrame(33819, 0, 1, false)); |
514 ExtractFrame(); | 514 ExtractFrame(); |
515 EXPECT_EQ(41248, InsertFrame(41248, 0, 1, false)); | 515 EXPECT_EQ(41248, InsertFrame(41248, 0, 1, false)); |
516 ExtractFrame(); | 516 ExtractFrame(); |
517 } | 517 } |
518 | 518 |
| 519 TEST_F(TestFrameBuffer2, DuplicateFrames) { |
| 520 EXPECT_EQ(22256, InsertFrame(22256, 0, 1, false)); |
| 521 ExtractFrame(); |
| 522 EXPECT_EQ(22256, InsertFrame(22256, 0, 1, false)); |
| 523 } |
| 524 |
519 } // namespace video_coding | 525 } // namespace video_coding |
520 } // namespace webrtc | 526 } // namespace webrtc |
OLD | NEW |