Index: webrtc/modules/audio_coding/neteq/tick_timer.cc |
diff --git a/webrtc/test/fuzzers/rtp_packet_fuzzer.cc b/webrtc/modules/audio_coding/neteq/tick_timer.cc |
similarity index 51% |
copy from webrtc/test/fuzzers/rtp_packet_fuzzer.cc |
copy to webrtc/modules/audio_coding/neteq/tick_timer.cc |
index a9efdb96ecfe4f7a77873f54edbb55108c9497f9..4a1b9b7b1fe20c41388a8b7e531340b0ce08cfac 100644 |
--- a/webrtc/test/fuzzers/rtp_packet_fuzzer.cc |
+++ b/webrtc/modules/audio_coding/neteq/tick_timer.cc |
@@ -7,23 +7,19 @@ |
* in the file PATENTS. All contributing project authors may |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" |
+ |
+#include "webrtc/modules/audio_coding/neteq/tick_timer.h" |
namespace webrtc { |
-void FuzzOneInput(const uint8_t* data, size_t size) { |
- RtpPacketReceived packet; |
+TickTimer::Stopwatch::Stopwatch(const TickTimer& ticktimer) |
+ : ticktimer_(ticktimer), starttick_(ticktimer.ticks()) {} |
- packet.Parse(data, size); |
+TickTimer::Countdown::Countdown(const TickTimer& ticktimer, |
+ uint64_t ticks_to_count) |
+ : stopwatch_(ticktimer.GetNewStopwatch()), |
+ ticks_to_count_(ticks_to_count) {} |
- // Call packet accessors because they have extra checks. |
- packet.Marker(); |
- packet.PayloadType(); |
- packet.SequenceNumber(); |
- packet.Timestamp(); |
- packet.Ssrc(); |
- packet.Csrcs(); |
-} |
+TickTimer::Countdown::~Countdown() = default; |
} // namespace webrtc |
- |