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

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

Issue 3007763002: Move array_view.h to webrtc/api/ (Closed)
Patch Set: rebase Created 3 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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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 <algorithm> 11 #include <algorithm>
12 #include <limits> 12 #include <limits>
13 #include <memory> 13 #include <memory>
14 #include <vector> 14 #include <vector>
15 15
16 #include "webrtc/api/array_view.h"
16 #include "webrtc/modules/include/module_common_types.h" 17 #include "webrtc/modules/include/module_common_types.h"
17 #include "webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h" 18 #include "webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h"
18 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" 19 #include "webrtc/modules/rtp_rtcp/source/byte_io.h"
19 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" 20 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h"
20 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h" 21 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h"
21 #include "webrtc/rtc_base/array_view.h"
22 #include "webrtc/test/gmock.h" 22 #include "webrtc/test/gmock.h"
23 #include "webrtc/test/gtest.h" 23 #include "webrtc/test/gtest.h"
24 24
25 namespace webrtc { 25 namespace webrtc {
26 namespace { 26 namespace {
27 27
28 using ::testing::Each; 28 using ::testing::Each;
29 using ::testing::ElementsAreArray; 29 using ::testing::ElementsAreArray;
30 using ::testing::Le; 30 using ::testing::Le;
31 using ::testing::SizeIs; 31 using ::testing::SizeIs;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 kLastPacketReductionLen); 183 kLastPacketReductionLen);
184 size_t num_packets = 184 size_t num_packets =
185 packetizer.SetPayloadData(kTestPayload, kPayloadSize, nullptr); 185 packetizer.SetPayloadData(kTestPayload, kPayloadSize, nullptr);
186 std::vector<size_t> payload_sizes = NextPacketFillPayloadSizes(&packetizer); 186 std::vector<size_t> payload_sizes = NextPacketFillPayloadSizes(&packetizer);
187 EXPECT_THAT(payload_sizes, SizeIs(num_packets)); 187 EXPECT_THAT(payload_sizes, SizeIs(num_packets));
188 188
189 EXPECT_EQ(num_packets, kMinNumPackets); 189 EXPECT_EQ(num_packets, kMinNumPackets);
190 } 190 }
191 191
192 } // namespace webrtc 192 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698