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

Side by Side Diff: webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestSenderReceiver.cc

Issue 1469013002: Move ThreadWrapper to ProcessThread in base. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: removed comment 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 CriticalSectionScoped cs(_critSect); 155 CriticalSectionScoped cs(_critSect);
156 156
157 _eventPtr = EventWrapper::Create(); 157 _eventPtr = EventWrapper::Create();
158 158
159 if (_rtp->SetSendingStatus(true) != 0) 159 if (_rtp->SetSendingStatus(true) != 0)
160 { 160 {
161 throw "_rtp->SetSendingStatus"; 161 throw "_rtp->SetSendingStatus";
162 exit(1); 162 exit(1);
163 } 163 }
164 164
165 _procThread = ThreadWrapper::CreateThread(ProcThreadFunction, this, 165 _procThread = PlatformThread::CreateThread(ProcThreadFunction, this,
166 "TestSenderReceiver"); 166 "TestSenderReceiver");
167 167
168 _running = true; 168 _running = true;
169 169
170 if (_isReceiver) 170 if (_isReceiver)
171 { 171 {
172 if (_transport->StartReceiving(NR_OF_SOCKET_BUFFERS) != 0) 172 if (_transport->StartReceiving(NR_OF_SOCKET_BUFFERS) != 0)
173 { 173 {
174 throw "_transport->StartReceiving"; 174 throw "_transport->StartReceiving";
175 exit(1); 175 exit(1);
176 } 176 }
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 402
403 if (_sendRecCB) 403 if (_sendRecCB)
404 { 404 {
405 _sendRecCB->OnOnNetworkChanged(maxBitrateBps, 405 _sendRecCB->OnOnNetworkChanged(maxBitrateBps,
406 fractionLost, 406 fractionLost,
407 roundTripTimeMs, 407 roundTripTimeMs,
408 bwEstimateKbitMin, 408 bwEstimateKbitMin,
409 bwEstimateKbitMax); 409 bwEstimateKbitMax);
410 } 410 }
411 } 411 }
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestSenderReceiver.h ('k') | webrtc/modules/utility/source/file_recorder_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698