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 "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "webrtc/modules/interface/module_common_types.h" | 14 #include "webrtc/modules/include/module_common_types.h" |
15 #include "webrtc/modules/video_coding/main/source/decoding_state.h" | 15 #include "webrtc/modules/video_coding/main/source/decoding_state.h" |
16 #include "webrtc/modules/video_coding/main/source/frame_buffer.h" | 16 #include "webrtc/modules/video_coding/main/source/frame_buffer.h" |
17 #include "webrtc/modules/video_coding/main/source/jitter_buffer_common.h" | 17 #include "webrtc/modules/video_coding/main/source/jitter_buffer_common.h" |
18 #include "webrtc/modules/video_coding/main/source/packet.h" | 18 #include "webrtc/modules/video_coding/main/source/packet.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(); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 frame.Reset(); | 440 frame.Reset(); |
441 // Testing only gap in tl0PicIdx when tl0PicIdx in continuous. | 441 // Testing only gap in tl0PicIdx when tl0PicIdx in continuous. |
442 packet.codecSpecificHeader.codecHeader.VP8.tl0PicIdx += 3; | 442 packet.codecSpecificHeader.codecHeader.VP8.tl0PicIdx += 3; |
443 packet.codecSpecificHeader.codecHeader.VP8.temporalIdx++; | 443 packet.codecSpecificHeader.codecHeader.VP8.temporalIdx++; |
444 packet.codecSpecificHeader.codecHeader.VP8.tl0PicIdx = 1; | 444 packet.codecSpecificHeader.codecHeader.VP8.tl0PicIdx = 1; |
445 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); | 445 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); |
446 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); | 446 EXPECT_FALSE(dec_state.ContinuousFrame(&frame)); |
447 } | 447 } |
448 | 448 |
449 } // namespace webrtc | 449 } // namespace webrtc |
OLD | NEW |