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

Unified Diff: webrtc/modules/audio_coding/test/APITest.cc

Issue 1853183002: Change NetEq::GetPlayoutTimestamp to return an rtc::Optional<uint32_t> (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
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/test/APITest.cc
diff --git a/webrtc/modules/audio_coding/test/APITest.cc b/webrtc/modules/audio_coding/test/APITest.cc
index bf04d7c8252f0ed95264ceee19aa5849404549d3..cbfd93310c07df5da4fac292b9ac50bb99f9d903 100644
--- a/webrtc/modules/audio_coding/test/APITest.cc
+++ b/webrtc/modules/audio_coding/test/APITest.cc
@@ -688,7 +688,7 @@ void APITest::TestDelay(char side) {
CHECK_ERROR_MT(myACM->SetMinimumPlayoutDelay(*myMinDelay));
inTimestamp = myChannel->LastInTimestamp();
- CHECK_ERROR_MT(myACM->PlayoutTimestamp(&outTimestamp));
+ CHECK_ERROR_MT(myACM->PlayoutTimestamp() ? 0 : -1);
if (!_randomTest) {
myEvent->StartTimer(true, 30);
@@ -698,7 +698,7 @@ void APITest::TestDelay(char side) {
myEvent->Wait(1000);
inTimestamp = myChannel->LastInTimestamp();
- CHECK_ERROR_MT(myACM->PlayoutTimestamp(&outTimestamp));
+ CHECK_ERROR_MT(myACM->PlayoutTimestamp() ? 0 : -1);
//std::cout << outTimestamp << std::endl << std::flush;
estimDelay = (double) ((uint32_t)(inTimestamp - outTimestamp))
minyue-webrtc 2016/04/04 15:53:50 no value assigned to outTimestam
hlundin-webrtc 2016/04/04 21:02:54 Ouch. My bad. Thanks for catching this.

Powered by Google App Engine
This is Rietveld 408576698