OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 |
11 #include <string.h> | 11 #include <string.h> |
12 | 12 |
13 #include <list> | 13 #include <list> |
14 | 14 |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "webrtc/modules/video_coding/main/source/frame_buffer.h" | 16 #include "webrtc/modules/video_coding/frame_buffer.h" |
17 #include "webrtc/modules/video_coding/main/source/jitter_buffer.h" | 17 #include "webrtc/modules/video_coding/jitter_buffer.h" |
18 #include "webrtc/modules/video_coding/main/source/media_opt_util.h" | 18 #include "webrtc/modules/video_coding/media_opt_util.h" |
19 #include "webrtc/modules/video_coding/main/source/packet.h" | 19 #include "webrtc/modules/video_coding/packet.h" |
20 #include "webrtc/modules/video_coding/main/source/test/stream_generator.h" | 20 #include "webrtc/modules/video_coding/test/stream_generator.h" |
21 #include "webrtc/modules/video_coding/main/test/test_util.h" | 21 #include "webrtc/modules/video_coding/test/test_util.h" |
22 #include "webrtc/system_wrappers/include/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.h" |
23 #include "webrtc/system_wrappers/include/metrics.h" | 23 #include "webrtc/system_wrappers/include/metrics.h" |
24 #include "webrtc/test/histogram.h" | 24 #include "webrtc/test/histogram.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 namespace { | 28 namespace { |
29 const uint32_t kProcessIntervalSec = 60; | 29 const uint32_t kProcessIntervalSec = 60; |
30 } // namespace | 30 } // namespace |
31 | 31 |
(...skipping 2536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2568 | 2568 |
2569 // Stream should be decodable from this point. | 2569 // Stream should be decodable from this point. |
2570 clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs); | 2570 clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs); |
2571 InsertFrame(kVideoFrameDelta); | 2571 InsertFrame(kVideoFrameDelta); |
2572 EXPECT_TRUE(DecodeCompleteFrame()); | 2572 EXPECT_TRUE(DecodeCompleteFrame()); |
2573 nack_list = jitter_buffer_->GetNackList(&extended); | 2573 nack_list = jitter_buffer_->GetNackList(&extended); |
2574 EXPECT_EQ(0u, nack_list.size()); | 2574 EXPECT_EQ(0u, nack_list.size()); |
2575 } | 2575 } |
2576 | 2576 |
2577 } // namespace webrtc | 2577 } // namespace webrtc |
OLD | NEW |