Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(971)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/flexfec_header_reader_writer_unittest.cc

Issue 2273353002: Style fixes in FecReceiver and ProducerFec unit tests. (pt. 7) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@rename_frame_generator_to_ulpfec_packet_generator
Patch Set: Changes due to feedback from https://codereview.webrtc.org/2276473002/. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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
(...skipping 10 matching lines...) Expand all
21 #include "webrtc/base/scoped_ref_ptr.h" 21 #include "webrtc/base/scoped_ref_ptr.h"
22 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" 22 #include "webrtc/modules/rtp_rtcp/source/byte_io.h"
23 #include "webrtc/modules/rtp_rtcp/source/flexfec_header_reader_writer.h" 23 #include "webrtc/modules/rtp_rtcp/source/flexfec_header_reader_writer.h"
24 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" 24 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h"
25 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h" 25 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h"
26 26
27 namespace webrtc { 27 namespace webrtc {
28 28
29 namespace { 29 namespace {
30 30
31 using Packet = ::webrtc::ForwardErrorCorrection::Packet; 31 using Packet = ForwardErrorCorrection::Packet;
32 using ReceivedFecPacket = ::webrtc::ForwardErrorCorrection::ReceivedFecPacket; 32 using ReceivedFecPacket = ForwardErrorCorrection::ReceivedFecPacket;
33 33
34 // General. Assume single-stream protection. 34 // General. Assume single-stream protection.
35 constexpr uint32_t kMediaSsrc = 1254983; 35 constexpr uint32_t kMediaSsrc = 1254983;
36 constexpr uint16_t kMediaStartSeqNum = 825; 36 constexpr uint16_t kMediaStartSeqNum = 825;
37 constexpr size_t kMediaPacketLength = 1234; 37 constexpr size_t kMediaPacketLength = 1234;
38 constexpr uint32_t kFlexfecSsrc = 52142; 38 constexpr uint32_t kFlexfecSsrc = 52142;
39 39
40 constexpr size_t kFlexfecHeaderSizes[] = {20, 24, 32}; 40 constexpr size_t kFlexfecHeaderSizes[] = {20, 24, 32};
41 constexpr size_t kFlexfecPacketMaskOffset = 18; 41 constexpr size_t kFlexfecPacketMaskOffset = 18;
42 constexpr size_t kFlexfecPacketMaskSizes[] = {2, 6, 14}; 42 constexpr size_t kFlexfecPacketMaskSizes[] = {2, 6, 14};
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 549
550 auto written_packet = WriteHeader(packet_mask.get(), packet_mask_size); 550 auto written_packet = WriteHeader(packet_mask.get(), packet_mask_size);
551 auto read_packet = ReadHeader(*written_packet); 551 auto read_packet = ReadHeader(*written_packet);
552 552
553 VerifyWrittenAndReadHeaders(kFlexfecHeaderSizes[2], packet_mask.get(), 553 VerifyWrittenAndReadHeaders(kFlexfecHeaderSizes[2], packet_mask.get(),
554 kFlexfecPacketMaskSizes[2], *written_packet, 554 kFlexfecPacketMaskSizes[2], *written_packet,
555 *read_packet); 555 *read_packet);
556 } 556 }
557 557
558 } // namespace webrtc 558 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/fec_receiver_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/producer_fec_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698