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> | 11 #include <string> |
12 | 12 |
13 #include <list> | 13 #include <list> |
14 #include <memory> | 14 #include <memory> |
15 | 15 |
16 #include "webrtc/test/gtest.h" | |
17 #include "webrtc/test/gmock.h" | |
18 #include "webrtc/modules/video_coding/frame_buffer.h" | 16 #include "webrtc/modules/video_coding/frame_buffer.h" |
19 #include "webrtc/modules/video_coding/jitter_buffer.h" | 17 #include "webrtc/modules/video_coding/jitter_buffer.h" |
20 #include "webrtc/modules/video_coding/media_opt_util.h" | 18 #include "webrtc/modules/video_coding/media_opt_util.h" |
21 #include "webrtc/modules/video_coding/packet.h" | 19 #include "webrtc/modules/video_coding/packet.h" |
22 #include "webrtc/modules/video_coding/test/stream_generator.h" | 20 #include "webrtc/modules/video_coding/test/stream_generator.h" |
23 #include "webrtc/modules/video_coding/test/test_util.h" | 21 #include "webrtc/modules/video_coding/test/test_util.h" |
24 #include "webrtc/system_wrappers/include/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.h" |
25 #include "webrtc/system_wrappers/include/field_trial.h" | 23 #include "webrtc/system_wrappers/include/field_trial.h" |
26 #include "webrtc/system_wrappers/include/metrics.h" | 24 #include "webrtc/system_wrappers/include/metrics.h" |
27 #include "webrtc/system_wrappers/include/metrics_default.h" | 25 #include "webrtc/system_wrappers/include/metrics_default.h" |
28 #include "webrtc/test/field_trial.h" | 26 #include "webrtc/test/field_trial.h" |
| 27 #include "webrtc/test/gmock.h" |
| 28 #include "webrtc/test/gtest.h" |
29 | 29 |
30 namespace webrtc { | 30 namespace webrtc { |
31 | 31 |
32 namespace { | 32 namespace { |
33 const uint32_t kProcessIntervalSec = 60; | 33 const uint32_t kProcessIntervalSec = 60; |
34 } // namespace | 34 } // namespace |
35 | 35 |
36 class Vp9SsMapTest : public ::testing::Test { | 36 class Vp9SsMapTest : public ::testing::Test { |
37 protected: | 37 protected: |
38 Vp9SsMapTest() : packet_() {} | 38 Vp9SsMapTest() : packet_() {} |
(...skipping 2589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2628 | 2628 |
2629 // Stream should be decodable from this point. | 2629 // Stream should be decodable from this point. |
2630 clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs); | 2630 clock_->AdvanceTimeMilliseconds(kDefaultFramePeriodMs); |
2631 InsertFrame(kVideoFrameDelta); | 2631 InsertFrame(kVideoFrameDelta); |
2632 EXPECT_TRUE(DecodeCompleteFrame()); | 2632 EXPECT_TRUE(DecodeCompleteFrame()); |
2633 nack_list = jitter_buffer_->GetNackList(&extended); | 2633 nack_list = jitter_buffer_->GetNackList(&extended); |
2634 EXPECT_EQ(0u, nack_list.size()); | 2634 EXPECT_EQ(0u, nack_list.size()); |
2635 } | 2635 } |
2636 | 2636 |
2637 } // namespace webrtc | 2637 } // namespace webrtc |
OLD | NEW |