Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1655)

Unified Diff: webrtc/video/rampup_tests.cc

Issue 1476453002: Clean up PlatformThread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: IsRunning DCHECK Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/video/rampup_tests.h ('k') | webrtc/video/video_capture_input.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/rampup_tests.cc
diff --git a/webrtc/video/rampup_tests.cc b/webrtc/video/rampup_tests.cc
index fc0d0cb4f28f82773422305634ed1738c9a4b473..21b442339061174394bf175c83ad053685a28afd 100644
--- a/webrtc/video/rampup_tests.cc
+++ b/webrtc/video/rampup_tests.cc
@@ -60,9 +60,9 @@ RampUpTester::RampUpTester(size_t num_streams,
extension_type_(extension_type),
ssrcs_(GenerateSsrcs(num_streams, 100)),
rtx_ssrcs_(GenerateSsrcs(num_streams, 200)),
- poller_thread_(PlatformThread::CreateThread(&BitrateStatsPollingThread,
- this,
- "BitrateStatsPollingThread")),
+ poller_thread_(&BitrateStatsPollingThread,
+ this,
+ "BitrateStatsPollingThread"),
sender_call_(nullptr) {
if (rtx_) {
for (size_t i = 0; i < ssrcs_.size(); ++i)
@@ -277,11 +277,11 @@ void RampUpTester::TriggerTestDone() {
void RampUpTester::PerformTest() {
test_start_ms_ = clock_->TimeInMilliseconds();
- poller_thread_->Start();
+ poller_thread_.Start();
EXPECT_EQ(kEventSignaled, Wait())
<< "Timed out while waiting for ramp-up to complete.";
TriggerTestDone();
- poller_thread_->Stop();
+ poller_thread_.Stop();
}
RampUpDownUpTester::RampUpDownUpTester(size_t num_streams,
« no previous file with comments | « webrtc/video/rampup_tests.h ('k') | webrtc/video/video_capture_input.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698