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

Side by Side Diff: webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestLoadGenerator.h

Issue 1476453002: Clean up PlatformThread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: IsRunning DCHECK Created 5 years 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 26 matching lines...) Expand all
37 protected: 37 protected:
38 virtual int generatePayload ( uint32_t timestamp ) = 0; 38 virtual int generatePayload ( uint32_t timestamp ) = 0;
39 int generatePayload (); 39 int generatePayload ();
40 int sendPayload (const uint32_t timeStamp, 40 int sendPayload (const uint32_t timeStamp,
41 const uint8_t* payloadData, 41 const uint8_t* payloadData,
42 const size_t payloadSize, 42 const size_t payloadSize,
43 const webrtc::FrameType frameType = webrtc::kVideoFrameDelta); 43 const webrtc::FrameType frameType = webrtc::kVideoFrameDelta);
44 44
45 webrtc::CriticalSectionWrapper* _critSect; 45 webrtc::CriticalSectionWrapper* _critSect;
46 webrtc::EventWrapper *_eventPtr; 46 webrtc::EventWrapper *_eventPtr;
47 rtc::scoped_ptr<webrtc::PlatformThread> _genThread; 47 // TODO(pbos): Replace without pointer usage.
48 rtc::scoped_ptr<rtc::PlatformThread> _genThread;
48 int32_t _bitrateKbps; 49 int32_t _bitrateKbps;
49 TestSenderReceiver *_sender; 50 TestSenderReceiver *_sender;
50 bool _running; 51 bool _running;
51 int32_t _rtpSampleRate; 52 int32_t _rtpSampleRate;
52 }; 53 };
53 54
54 55
55 class CBRGenerator : public TestLoadGenerator 56 class CBRGenerator : public TestLoadGenerator
56 { 57 {
57 public: 58 public:
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 141
141 ~CBRFrameDropGenerator(); 142 ~CBRFrameDropGenerator();
142 143
143 protected: 144 protected:
144 virtual size_t nextPayloadSize(); 145 virtual size_t nextPayloadSize();
145 146
146 double _accBits; 147 double _accBits;
147 }; 148 };
148 149
149 #endif // WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_TESTLOADGENERATOR_H_ 150 #endif // WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_TESTLOADGENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698