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

Side by Side Diff: webrtc/video/video_send_stream_tests.cc

Issue 2061423003: Refactor NACK bitrate allocation (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed data race Created 4 years, 6 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) 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 #include <algorithm> // max 10 #include <algorithm> // max
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 *statistics = stats_; 279 *statistics = stats_;
280 return true; 280 return true;
281 } 281 }
282 void GetDataCounters(size_t* bytes_received, 282 void GetDataCounters(size_t* bytes_received,
283 uint32_t* packets_received) const override { 283 uint32_t* packets_received) const override {
284 *bytes_received = 0; 284 *bytes_received = 0;
285 *packets_received = 0; 285 *packets_received = 0;
286 } 286 }
287 void GetReceiveStreamDataCounters( 287 void GetReceiveStreamDataCounters(
288 StreamDataCounters* data_counters) const override {} 288 StreamDataCounters* data_counters) const override {}
289 uint32_t BitrateReceived() const override { return 0; } 289 uint32_t BitrateReceived() override { return 0; }
290 bool IsRetransmitOfOldPacket(const RTPHeader& header, 290 bool IsRetransmitOfOldPacket(const RTPHeader& header,
291 int64_t min_rtt) const override { 291 int64_t min_rtt) const override {
292 return false; 292 return false;
293 } 293 }
294 294
295 bool IsPacketInOrder(uint16_t sequence_number) const override { 295 bool IsPacketInOrder(uint16_t sequence_number) const override {
296 return true; 296 return true;
297 } 297 }
298 298
299 RtcpStatistics stats_; 299 RtcpStatistics stats_;
(...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after
2376 observation_complete_.Set(); 2376 observation_complete_.Set();
2377 } 2377 }
2378 } 2378 }
2379 } test; 2379 } test;
2380 2380
2381 RunBaseTest(&test); 2381 RunBaseTest(&test);
2382 } 2382 }
2383 #endif // !defined(RTC_DISABLE_VP9) 2383 #endif // !defined(RTC_DISABLE_VP9)
2384 2384
2385 } // namespace webrtc 2385 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698