Named threads in PeerConnectionIntegrationBaseTest.

Makes it easier to follow threads during debugging.

Bug: None
Change-Id: I88e68521e354224052500bc47f2300253b95a892
Reviewed-on: https://webrtc-review.googlesource.com/61429
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22405}
This commit is contained in:
Sebastian Jansson 2018-03-13 15:21:48 +01:00 committed by Commit Bot
parent efbcfb13a7
commit 8a793a0b1b

View File

@ -1087,6 +1087,8 @@ class PeerConnectionIntegrationBaseTest : public testing::Test {
fss_(new rtc::FirewallSocketServer(ss_.get())),
network_thread_(new rtc::Thread(fss_.get())),
worker_thread_(rtc::Thread::Create()) {
network_thread_->SetName("PCNetworkThread", this);
worker_thread_->SetName("PCWorkerThread", this);
RTC_CHECK(network_thread_->Start());
RTC_CHECK(worker_thread_->Start());
}