Add GetStats at end of PeerConnection quality tests

Bug: None
Change-Id: Ia4a9c38d4afbc85e6bf016b94043e6c809e91c9e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/155167
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29360}
This commit is contained in:
Niels Möller 2019-10-01 13:35:33 +02:00 committed by Commit Bot
parent 7c2bed8337
commit 65235d3ae7

View File

@ -375,9 +375,11 @@ void PeerConnectionE2EQualityTest::Run(RunParams run_params) {
RTC_LOG(INFO) << "Test is done, initiating disconnect sequence.";
task_queue_->SendTask([this]() {
task_queue_->SendTask([&stats_poller, this]() {
RTC_DCHECK_RUN_ON(task_queue_.get());
stats_polling_task_.Stop();
// Get final end-of-call stats.
stats_poller.PollStatsAndNotifyObservers();
});
// We need to detach AEC dumping from peers, because dump uses |task_queue_|