Yves Gerey
c33e4910c5
Prevent 'use after free' by waiting for all queued tasks to be processed.
...
Sometimes, a task bound to VideoSendStreamTest was called
after the underlying object had been destructed:
1. |test| goes out of scope.
2. There might still have been a task in fixture's queue,
setup by OnSendRtp (capturing [this]) and invoked before
the destruction of the fixture.
This CL uses the same workaround than BandwidthStatsTest:
block until all posted tasks are processed.
This fixes the following flaky tests:
* VideoSendStreamTest.ChangingNetworkRoute
* VideoSendStreamTest.RespectsMinTransmitBitrate*
Bug: webrtc:11156
Change-Id: I229c96d2abbbb60b43e9d9f62ad112507a21fe48
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/163984
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Yves Gerey <yvesg@google.com>
Cr-Commit-Position: refs/heads/master@{#30152}
2020-01-07 04:18:51 +00:00
..
2019-12-16 11:43:11 +00:00
2019-09-09 15:06:51 +00:00
2019-10-23 16:50:57 +00:00
2019-04-09 20:08:56 +00:00
2019-09-24 08:22:38 +00:00
2019-12-13 11:41:04 +00:00
2019-12-09 13:55:50 +00:00
2019-08-09 11:43:16 +00:00
2019-09-24 08:22:38 +00:00
2019-01-11 17:11:39 +00:00
2019-04-09 08:18:20 +00:00
2019-09-17 15:47:29 +00:00
2019-09-17 15:47:29 +00:00
2019-04-15 15:11:39 +00:00
2019-07-08 13:45:15 +00:00
2019-04-01 13:10:49 +00:00
2019-04-01 13:10:49 +00:00
2019-11-26 19:19:36 +00:00
2019-11-26 19:19:36 +00:00
2019-11-26 19:19:36 +00:00
2019-09-17 15:47:29 +00:00
2019-08-21 09:49:02 +00:00
2019-06-20 10:24:29 +00:00
2019-12-17 12:28:04 +00:00
2019-06-20 10:24:29 +00:00
2018-07-23 15:28:48 +00:00
2019-09-17 15:47:29 +00:00
2019-10-15 09:17:36 +00:00
2019-09-17 15:47:29 +00:00
2019-04-25 09:26:04 +00:00
2018-09-11 12:39:39 +00:00
2019-09-17 15:47:29 +00:00
2019-12-13 11:41:04 +00:00
2019-09-30 12:52:07 +00:00
2019-05-28 16:23:55 +00:00
2019-09-09 15:22:57 +00:00
2019-03-11 13:37:38 +00:00
2018-11-28 18:25:07 +00:00
2018-08-29 11:57:00 +00:00
2019-12-09 13:55:50 +00:00
2019-11-25 10:50:37 +00:00
2019-10-23 07:46:39 +00:00
2019-08-02 08:58:36 +00:00
2019-08-01 14:09:23 +00:00
2019-08-01 14:09:23 +00:00
2019-10-23 07:46:39 +00:00
2019-10-23 07:46:39 +00:00
2019-12-16 12:08:11 +00:00
2019-12-16 12:08:11 +00:00
2019-12-16 12:08:11 +00:00
2019-09-18 06:37:58 +00:00
2019-12-09 13:55:50 +00:00
2019-07-08 13:45:15 +00:00
2019-12-09 13:55:50 +00:00
2019-11-27 16:49:54 +00:00
2019-11-27 16:49:54 +00:00
2018-09-24 09:39:19 +00:00
2019-01-11 17:11:39 +00:00
2019-11-19 08:48:45 +00:00
2019-12-11 13:55:16 +00:00
2019-12-11 13:55:16 +00:00
2019-09-18 06:37:58 +00:00
2018-08-29 11:57:00 +00:00
2019-07-08 13:45:15 +00:00
2019-12-13 11:41:04 +00:00
2019-12-13 11:41:04 +00:00
2019-03-06 14:37:33 +00:00
2019-03-06 14:37:33 +00:00
2019-09-18 06:37:58 +00:00
2019-03-06 14:37:33 +00:00
2019-08-26 12:57:59 +00:00
2019-08-02 12:38:34 +00:00
2019-12-07 00:54:26 +00:00
2019-12-07 00:54:26 +00:00
2019-12-04 17:16:32 +00:00
2019-12-03 15:55:04 +00:00
2019-12-03 15:55:04 +00:00
2019-09-17 15:47:29 +00:00
2019-11-26 19:19:36 +00:00
2019-11-26 19:19:36 +00:00
2019-11-26 19:19:36 +00:00
2020-01-07 04:18:51 +00:00
2019-11-26 19:19:36 +00:00
2019-03-29 18:53:27 +00:00
2019-09-17 15:47:29 +00:00
2019-06-05 11:58:57 +00:00
2019-09-09 11:23:54 +00:00
2019-09-09 11:23:54 +00:00
2019-12-19 10:39:04 +00:00
2019-12-19 10:39:04 +00:00
2019-12-04 11:24:31 +00:00