Niels Möller
8909a63aca
Reland "Explicitly wrap main thread in test_main.cc."
...
This is a reland of 711a31aead9007e42dd73c302c8ec40f9e931619
Changes since original landing:
Rename methods only used by tests, mainly via FakeClock,
MessageQueueManager::ProcessAllMessageQueues
--> ProcessAllMessageQueuesForTesting
MessageQueue::IsProcessingMessages
--> IsProcessingMessagesForTesting
Fix the handling of null rtc::Thread::Current() in
ProcessAllMessageQueuesInternal().
Add override Thread::IsProcessingMessagesForTesting() to return false
for the wrapped main thread, unless it's also the current thread. In
tests, the main thread is typically not processing any messages,
but blocked in an Event::Wait().
Original change's description:
> Explicitly wrap main thread in test_main.cc.
>
> Bug: webrtc:9714
> Change-Id: I6ee234f9a0b88b3656a683f2455c3e4b2acf0d54
> Reviewed-on: https://webrtc-review.googlesource.com/97683
> Reviewed-by: Tommi <tommi@webrtc.org>
> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
> Commit-Queue: Niels Moller <nisse@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#24560}
Bug: webrtc:9714
Change-Id: I6f022d46aaf1e28f86f09f2d68c1803b69770126
Reviewed-on: https://webrtc-review.googlesource.com/98060
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24596}
2018-09-06 08:38:18 +00:00
..
2018-09-03 15:02:58 +00:00
2018-06-21 13:44:53 +00:00
2018-07-25 14:59:26 +00:00
2018-06-21 11:23:40 +00:00
2018-09-03 08:48:42 +00:00
2018-07-25 14:59:26 +00:00
2018-07-25 14:59:26 +00:00
2018-08-07 09:39:06 +00:00
2018-07-25 14:59:26 +00:00
2018-09-05 13:04:01 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 14:53:33 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 14:53:33 +00:00
2018-04-17 18:34:14 +00:00
2018-07-25 14:53:33 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 14:53:33 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 14:53:33 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-23 15:40:36 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-08-03 07:49:46 +00:00
2018-06-19 14:00:39 +00:00
2018-09-05 08:24:27 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-08-31 00:02:44 +00:00
2018-06-19 14:00:39 +00:00
2018-05-28 09:08:59 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-08-31 16:10:20 +00:00
2018-08-31 16:10:20 +00:00
2018-08-31 16:10:20 +00:00
2018-08-31 16:10:20 +00:00
2018-07-03 15:21:13 +00:00
2018-07-03 15:21:13 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-19 01:26:59 +00:00
2018-07-19 01:26:59 +00:00
2018-06-19 14:00:39 +00:00
2018-09-04 13:43:24 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-05-21 19:35:08 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 14:59:26 +00:00
2018-07-25 14:59:26 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-09-06 08:38:18 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-05 10:59:49 +00:00
2018-06-01 11:36:51 +00:00
2018-06-01 11:36:51 +00:00
2018-06-01 11:36:51 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-25 14:20:11 +00:00
2018-06-25 14:20:11 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 14:59:26 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-08-08 11:00:11 +00:00
2018-08-08 11:00:11 +00:00
2018-06-19 14:00:39 +00:00
2018-07-23 15:40:36 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 15:20:13 +00:00
2018-07-25 15:20:13 +00:00
2018-07-25 15:20:13 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 15:20:13 +00:00
2018-07-25 15:20:13 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-09-04 13:42:20 +00:00
2018-09-04 13:42:20 +00:00
2018-09-04 13:42:20 +00:00
2018-06-21 09:11:43 +00:00
2018-06-21 09:11:43 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-08-31 00:02:44 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-09-06 08:38:18 +00:00
2018-09-06 08:38:18 +00:00
2018-09-06 08:38:18 +00:00
2018-07-05 10:59:49 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 14:53:33 +00:00
2018-07-02 17:59:11 +00:00
2018-06-19 14:00:39 +00:00
2018-07-26 22:02:02 +00:00
2018-07-25 14:53:33 +00:00
2018-04-27 22:49:33 +00:00
2018-07-25 14:53:33 +00:00
2018-07-23 19:35:28 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-05-07 20:03:27 +00:00
2018-07-25 14:59:26 +00:00
2018-07-05 10:59:49 +00:00
2018-09-05 08:15:29 +00:00
2018-09-05 08:15:29 +00:00
2018-08-16 06:49:42 +00:00
2018-05-09 00:24:05 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-05 10:59:49 +00:00
2018-05-09 00:24:05 +00:00
2018-05-30 09:44:33 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-05-09 00:24:05 +00:00
2018-08-16 06:49:42 +00:00
2018-08-16 06:49:42 +00:00
2018-06-19 14:00:39 +00:00
2018-08-16 16:14:01 +00:00
2018-06-19 14:00:39 +00:00
2018-08-07 15:47:05 +00:00
2018-06-15 09:25:35 +00:00
2018-06-15 09:25:35 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-09-03 07:05:56 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 14:59:26 +00:00
2018-06-21 11:23:40 +00:00
2018-06-21 11:23:40 +00:00
2018-08-27 11:28:37 +00:00
2018-08-27 11:28:37 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-05-21 19:35:08 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-21 11:23:40 +00:00
2018-06-21 11:23:40 +00:00
2018-06-21 11:23:40 +00:00
2018-06-07 11:39:15 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-09-06 08:38:18 +00:00
2018-09-06 08:38:18 +00:00
2018-07-25 14:53:33 +00:00
2018-07-25 14:53:33 +00:00
2018-07-25 14:53:33 +00:00
2018-07-25 14:53:33 +00:00
2018-07-25 14:53:33 +00:00
2018-07-05 10:59:49 +00:00
2018-06-19 14:00:39 +00:00
2018-04-26 16:33:57 +00:00
2018-06-21 11:23:40 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-09-05 08:15:29 +00:00
2018-09-05 08:15:29 +00:00
2018-09-05 08:15:29 +00:00
2018-07-23 15:40:36 +00:00
2018-05-09 00:24:05 +00:00
2018-06-19 14:00:39 +00:00
2018-05-21 19:35:08 +00:00
2018-06-19 14:00:39 +00:00
2018-07-23 15:40:36 +00:00
2018-05-09 00:24:05 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-12 21:35:47 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 15:20:13 +00:00
2018-07-25 15:20:13 +00:00
2018-06-21 11:23:40 +00:00
2018-08-16 16:14:01 +00:00
2018-08-16 16:14:01 +00:00
2018-08-16 16:14:01 +00:00
2018-09-03 08:48:42 +00:00
2018-09-03 08:48:42 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-09-04 13:42:20 +00:00
2018-09-04 13:42:20 +00:00
2018-07-25 14:59:26 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 14:59:26 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-05 10:59:49 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-05-09 00:24:05 +00:00
2018-07-05 10:59:49 +00:00
2018-07-05 10:59:49 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-25 14:53:33 +00:00
2018-09-06 08:38:18 +00:00
2018-09-06 08:38:18 +00:00
2018-06-19 14:00:39 +00:00
2018-08-11 20:29:07 +00:00
2018-08-11 20:29:07 +00:00
2018-06-12 07:53:47 +00:00
2018-06-19 14:00:39 +00:00
2018-07-12 21:35:47 +00:00
2018-06-19 14:00:39 +00:00
2018-07-05 10:59:49 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-05 10:59:49 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-07-09 19:54:28 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00
2018-06-19 14:00:39 +00:00