Add default constructor for rtc::Event

Bug: webrtc:9962
Change-Id: Icaa91e657e6881fcb1553f354c07866109a0ea68
Reviewed-on: https://webrtc-review.googlesource.com/c/109500
Commit-Queue: Niels Moller <nisse@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25535}
This commit is contained in:
Niels Möller
2018-11-07 08:43:50 +01:00
committed by Commit Bot
parent 3ea7b83fa3
commit c572ff3c71
64 changed files with 147 additions and 218 deletions

View File

@ -32,11 +32,7 @@ class VideoCodecUnitTest : public ::testing::Test {
VideoCodecUnitTest()
: encode_complete_callback_(this),
decode_complete_callback_(this),
encoded_frame_event_(false /* manual reset */,
false /* initially signaled */),
wait_for_encoded_frames_threshold_(1),
decoded_frame_event_(false /* manual reset */,
false /* initially signaled */),
last_input_frame_timestamp_(0) {}
protected:

View File

@ -444,7 +444,7 @@ void VideoCodecTestFixtureImpl::ProcessAllFrames(
}
// Wait until we know that the last frame has been sent for encode.
rtc::Event sync_event(false, false);
rtc::Event sync_event;
task_queue->PostTask([&sync_event] { sync_event.Set(); });
sync_event.Wait(rtc::Event::kForever);