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

Side by Side Diff: webrtc/test/call_test.cc

Issue 1487893004: Replace EventWrapper in video/, test/ and call/. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 #include "webrtc/test/call_test.h" 10 #include "webrtc/test/call_test.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void CallTest::DestroyStreams() { 166 void CallTest::DestroyStreams() {
167 if (send_stream_ != NULL) 167 if (send_stream_ != NULL)
168 sender_call_->DestroyVideoSendStream(send_stream_); 168 sender_call_->DestroyVideoSendStream(send_stream_);
169 send_stream_ = NULL; 169 send_stream_ = NULL;
170 for (size_t i = 0; i < receive_streams_.size(); ++i) 170 for (size_t i = 0; i < receive_streams_.size(); ++i)
171 receiver_call_->DestroyVideoReceiveStream(receive_streams_[i]); 171 receiver_call_->DestroyVideoReceiveStream(receive_streams_[i]);
172 receive_streams_.clear(); 172 receive_streams_.clear();
173 allocated_decoders_.clear(); 173 allocated_decoders_.clear();
174 } 174 }
175 175
176 const unsigned int CallTest::kDefaultTimeoutMs = 30 * 1000; 176 const int CallTest::kDefaultTimeoutMs = 30 * 1000;
177 const unsigned int CallTest::kLongTimeoutMs = 120 * 1000; 177 const int CallTest::kLongTimeoutMs = 120 * 1000;
178 const uint8_t CallTest::kSendPayloadType = 100; 178 const uint8_t CallTest::kSendPayloadType = 100;
179 const uint8_t CallTest::kFakeSendPayloadType = 125; 179 const uint8_t CallTest::kFakeSendPayloadType = 125;
180 const uint8_t CallTest::kSendRtxPayloadType = 98; 180 const uint8_t CallTest::kSendRtxPayloadType = 98;
181 const uint8_t CallTest::kRedPayloadType = 118; 181 const uint8_t CallTest::kRedPayloadType = 118;
182 const uint8_t CallTest::kRtxRedPayloadType = 99; 182 const uint8_t CallTest::kRtxRedPayloadType = 99;
183 const uint8_t CallTest::kUlpfecPayloadType = 119; 183 const uint8_t CallTest::kUlpfecPayloadType = 119;
184 const uint32_t CallTest::kSendRtxSsrcs[kNumSsrcs] = {0xBADCAFD, 0xBADCAFE, 184 const uint32_t CallTest::kSendRtxSsrcs[kNumSsrcs] = {0xBADCAFD, 0xBADCAFE,
185 0xBADCAFF}; 185 0xBADCAFF};
186 const uint32_t CallTest::kSendSsrcs[kNumSsrcs] = {0xC0FFED, 0xC0FFEE, 0xC0FFEF}; 186 const uint32_t CallTest::kSendSsrcs[kNumSsrcs] = {0xC0FFED, 0xC0FFEE, 0xC0FFEF};
187 const uint32_t CallTest::kReceiverLocalSsrc = 0x123456; 187 const uint32_t CallTest::kReceiverLocalSsrc = 0x123456;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 235
236 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { 236 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) {
237 } 237 }
238 238
239 bool EndToEndTest::ShouldCreateReceivers() const { 239 bool EndToEndTest::ShouldCreateReceivers() const {
240 return true; 240 return true;
241 } 241 }
242 242
243 } // namespace test 243 } // namespace test
244 } // namespace webrtc 244 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698