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

Unified Diff: webrtc/modules/audio_coding/neteq/tick_timer.cc

Issue 1903043003: WIP: Adding a centralized NetEq Clock (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@neteq-remove-type-param
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
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
-
« no previous file with comments | « webrtc/modules/audio_coding/neteq/tick_timer.h ('k') | webrtc/modules/audio_coding/neteq/tick_timer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698