| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "webrtc/base/scoped_ptr.h" | 15 #include "webrtc/base/scoped_ptr.h" |
| 16 #include "webrtc/modules/interface/module_common_types.h" | 16 #include "webrtc/modules/include/module_common_types.h" |
| 17 #include "webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h" | 17 #include "webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h" |
| 18 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" | 18 #include "webrtc/modules/rtp_rtcp/source/rtp_format.h" |
| 19 | 19 |
| 20 namespace webrtc { | 20 namespace webrtc { |
| 21 namespace { | 21 namespace { |
| 22 const size_t kMaxPayloadSize = 1200; | 22 const size_t kMaxPayloadSize = 1200; |
| 23 const size_t kLengthFieldLength = 2; | 23 const size_t kLengthFieldLength = 2; |
| 24 | 24 |
| 25 enum Nalu { | 25 enum Nalu { |
| 26 kSlice = 1, | 26 kSlice = 1, |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 EXPECT_FALSE(depacketizer_->Parse(&payload, kPayload, sizeof(kPayload))); | 563 EXPECT_FALSE(depacketizer_->Parse(&payload, kPayload, sizeof(kPayload))); |
| 564 } | 564 } |
| 565 | 565 |
| 566 TEST_F(RtpDepacketizerH264Test, TestShortSpsPacket) { | 566 TEST_F(RtpDepacketizerH264Test, TestShortSpsPacket) { |
| 567 const uint8_t kPayload[] = {0x27, 0x80, 0x00}; | 567 const uint8_t kPayload[] = {0x27, 0x80, 0x00}; |
| 568 RtpDepacketizer::ParsedPayload payload; | 568 RtpDepacketizer::ParsedPayload payload; |
| 569 EXPECT_TRUE(depacketizer_->Parse(&payload, kPayload, sizeof(kPayload))); | 569 EXPECT_TRUE(depacketizer_->Parse(&payload, kPayload, sizeof(kPayload))); |
| 570 } | 570 } |
| 571 | 571 |
| 572 } // namespace webrtc | 572 } // namespace webrtc |
| OLD | NEW |