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

Side by Side Diff: webrtc/test/fuzzers/congestion_controller_feedback_fuzzer.cc

Issue 2888893002: Renaming probing_interval to bwe_period globally. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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/logging/rtc_event_log/rtc_event_log.h" 11 #include "webrtc/logging/rtc_event_log/rtc_event_log.h"
12 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" 12 #include "webrtc/modules/congestion_controller/include/congestion_controller.h"
13 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h" 13 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h"
14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" 14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h"
15 15
16 namespace webrtc { 16 namespace webrtc {
17 17
18 class NullBitrateObserver : public CongestionController::Observer, 18 class NullBitrateObserver : public CongestionController::Observer,
19 public RemoteBitrateObserver { 19 public RemoteBitrateObserver {
20 public: 20 public:
21 ~NullBitrateObserver() override {} 21 ~NullBitrateObserver() override {}
22 22
23 // TODO(minyue): remove this when old OnNetworkChanged is deprecated. See 23 // TODO(minyue): remove this when old OnNetworkChanged is deprecated. See
24 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6796 24 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6796
25 using CongestionController::Observer::OnNetworkChanged; 25 using CongestionController::Observer::OnNetworkChanged;
26 26
27 void OnNetworkChanged(uint32_t bitrate_bps, 27 void OnNetworkChanged(uint32_t bitrate_bps,
28 uint8_t fraction_loss, 28 uint8_t fraction_loss,
29 int64_t rtt_ms, 29 int64_t rtt_ms,
30 int64_t probing_interval_ms) override {} 30 int64_t bwe_period_ms) override {}
31 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, 31 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs,
32 uint32_t bitrate) override {} 32 uint32_t bitrate) override {}
33 }; 33 };
34 34
35 void FuzzOneInput(const uint8_t* data, size_t size) { 35 void FuzzOneInput(const uint8_t* data, size_t size) {
36 size_t i = 0; 36 size_t i = 0;
37 if (size < sizeof(int64_t) + sizeof(uint8_t) + sizeof(uint32_t)) 37 if (size < sizeof(int64_t) + sizeof(uint8_t) + sizeof(uint32_t))
38 return; 38 return;
39 SimulatedClock clock(data[i++]); 39 SimulatedClock clock(data[i++]);
40 NullBitrateObserver observer; 40 NullBitrateObserver observer;
(...skipping 18 matching lines...) Expand all
59 ByteReader<uint16_t>::ReadBigEndian(&data[i]); 59 ByteReader<uint16_t>::ReadBigEndian(&data[i]);
60 i += sizeof(uint16_t); 60 i += sizeof(uint16_t);
61 rbe->IncomingPacket(arrival_time_ms, payload_size, header); 61 rbe->IncomingPacket(arrival_time_ms, payload_size, header);
62 clock.AdvanceTimeMilliseconds(5); 62 clock.AdvanceTimeMilliseconds(5);
63 arrival_time_ms += ByteReader<uint8_t>::ReadBigEndian(&data[i]); 63 arrival_time_ms += ByteReader<uint8_t>::ReadBigEndian(&data[i]);
64 arrival_time_ms += sizeof(uint8_t); 64 arrival_time_ms += sizeof(uint8_t);
65 } 65 }
66 rbe->Process(); 66 rbe->Process();
67 } 67 }
68 } // namespace webrtc 68 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698