Update rtc::Event::Wait call sites to use TimeDelta.
Bug: webrtc:14366 Change-Id: I949c1d26f030696b18153afef977633c9a5bd4cf Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/272003 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Markus Handell <handellm@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37835}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
4d715385e1
commit
2cfc1af78a
@ -479,9 +479,7 @@ class AudioCodingModuleMtTestOldApi : public AudioCodingModuleTestOldApi {
|
||||
insert_packet_thread_.Finalize();
|
||||
}
|
||||
|
||||
bool RunTest() {
|
||||
return test_complete_.Wait(10 * 60 * 1000); // 10 minutes' timeout.
|
||||
}
|
||||
bool RunTest() { return test_complete_.Wait(TimeDelta::Minutes(10)); }
|
||||
|
||||
virtual bool TestDone() {
|
||||
if (packet_cb_.num_calls() > kNumPackets) {
|
||||
@ -736,9 +734,7 @@ class AcmReRegisterIsacMtTestOldApi : public AudioCodingModuleTestOldApi {
|
||||
codec_registration_thread_.Finalize();
|
||||
}
|
||||
|
||||
bool RunTest() {
|
||||
return test_complete_.Wait(10 * 60 * 1000); // 10 minutes' timeout.
|
||||
}
|
||||
bool RunTest() { return test_complete_.Wait(TimeDelta::Minutes(10)); }
|
||||
|
||||
bool CbReceiveImpl() {
|
||||
SleepMs(1);
|
||||
|
||||
Reference in New Issue
Block a user