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 "webrtc/test/gtest.h" | |
14 #include "webrtc/modules/include/module_common_types.h" | 13 #include "webrtc/modules/include/module_common_types.h" |
15 #include "webrtc/modules/video_coding/decoding_state.h" | 14 #include "webrtc/modules/video_coding/decoding_state.h" |
16 #include "webrtc/modules/video_coding/frame_buffer.h" | 15 #include "webrtc/modules/video_coding/frame_buffer.h" |
17 #include "webrtc/modules/video_coding/jitter_buffer_common.h" | 16 #include "webrtc/modules/video_coding/jitter_buffer_common.h" |
18 #include "webrtc/modules/video_coding/packet.h" | 17 #include "webrtc/modules/video_coding/packet.h" |
| 18 #include "webrtc/test/gtest.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 TEST(TestDecodingState, Sanity) { | 22 TEST(TestDecodingState, Sanity) { |
23 VCMDecodingState dec_state; | 23 VCMDecodingState dec_state; |
24 dec_state.Reset(); | 24 dec_state.Reset(); |
25 EXPECT_TRUE(dec_state.in_initial_state()); | 25 EXPECT_TRUE(dec_state.in_initial_state()); |
26 EXPECT_TRUE(dec_state.full_sync()); | 26 EXPECT_TRUE(dec_state.full_sync()); |
27 } | 27 } |
28 | 28 |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 // Ref to frame previous to KF, not continuous | 690 // Ref to frame previous to KF, not continuous |
691 frame.Reset(); | 691 frame.Reset(); |
692 vp9_hdr.picture_id = 30; | 692 vp9_hdr.picture_id = 30; |
693 vp9_hdr.num_ref_pics = 1; | 693 vp9_hdr.num_ref_pics = 1; |
694 vp9_hdr.pid_diff[0] = 30; | 694 vp9_hdr.pid_diff[0] = 30; |
695 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 695 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
696 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); | 696 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); |
697 } | 697 } |
698 | 698 |
699 } // namespace webrtc | 699 } // namespace webrtc |
OLD | NEW |