OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 "webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h" | 11 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h" |
12 | 12 |
13 #include <numeric> | 13 #include <numeric> |
14 | 14 |
15 #include "webrtc/test/gtest.h" | |
16 #include "webrtc/base/constructormagic.h" | 15 #include "webrtc/base/constructormagic.h" |
17 #include "webrtc/modules/remote_bitrate_estimator/test/packet.h" | 16 #include "webrtc/modules/remote_bitrate_estimator/test/packet.h" |
18 #include "webrtc/modules/remote_bitrate_estimator/test/packet_sender.h" | 17 #include "webrtc/modules/remote_bitrate_estimator/test/packet_sender.h" |
| 18 #include "webrtc/test/gtest.h" |
19 #include "webrtc/test/testsupport/fileutils.h" | 19 #include "webrtc/test/testsupport/fileutils.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 namespace testing { | 22 namespace testing { |
23 namespace bwe { | 23 namespace bwe { |
24 | 24 |
25 static bool IsSequenceNumberSorted(const Packets& packets) { | 25 static bool IsSequenceNumberSorted(const Packets& packets) { |
26 PacketsConstIt last_it = packets.begin(); | 26 PacketsConstIt last_it = packets.begin(); |
27 for (PacketsConstIt it = last_it; it != packets.end(); ++it) { | 27 for (PacketsConstIt it = last_it; it != packets.end(); ++it) { |
28 const MediaPacket* packet = static_cast<const MediaPacket*>(*it); | 28 const MediaPacket* packet = static_cast<const MediaPacket*>(*it); |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 RembFeedback* feedback = new RembFeedback(0, 0, 0, 512000, RTCPReportBlock()); | 966 RembFeedback* feedback = new RembFeedback(0, 0, 0, 512000, RTCPReportBlock()); |
967 Packets packets; | 967 Packets packets; |
968 packets.push_back(feedback); | 968 packets.push_back(feedback); |
969 sender.RunFor(0, &packets); | 969 sender.RunFor(0, &packets); |
970 EXPECT_EQ(820000u, source.bits_per_second()); | 970 EXPECT_EQ(820000u, source.bits_per_second()); |
971 TestVideoSender(&sender, 10000, 1000, 500, 1025000); | 971 TestVideoSender(&sender, 10000, 1000, 500, 1025000); |
972 } | 972 } |
973 } // namespace bwe | 973 } // namespace bwe |
974 } // namespace testing | 974 } // namespace testing |
975 } // namespace webrtc | 975 } // namespace webrtc |
OLD | NEW |