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

Side by Side Diff: webrtc/media/engine/fakewebrtccall.cc

Issue 2721333003: Fix race in WebRtcVideoEngine2Tests, improve coverage. (Closed)
Patch Set: s/EXPECT_EQ(false, /EXPECT_FALSE( Created 3 years, 9 months 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
« no previous file with comments | « no previous file | webrtc/media/engine/fakewebrtcvideoengine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // TODO(brandtr): Implement when the stats have been designed. 326 // TODO(brandtr): Implement when the stats have been designed.
327 webrtc::FlexfecReceiveStream::Stats FakeFlexfecReceiveStream::GetStats() const { 327 webrtc::FlexfecReceiveStream::Stats FakeFlexfecReceiveStream::GetStats() const {
328 return webrtc::FlexfecReceiveStream::Stats(); 328 return webrtc::FlexfecReceiveStream::Stats();
329 } 329 }
330 330
331 FakeCall::FakeCall(const webrtc::Call::Config& config) 331 FakeCall::FakeCall(const webrtc::Call::Config& config)
332 : config_(config), 332 : config_(config),
333 audio_network_state_(webrtc::kNetworkUp), 333 audio_network_state_(webrtc::kNetworkUp),
334 video_network_state_(webrtc::kNetworkUp), 334 video_network_state_(webrtc::kNetworkUp),
335 num_created_send_streams_(0), 335 num_created_send_streams_(0),
336 num_created_receive_streams_(0) {} 336 num_created_receive_streams_(0),
337 audio_transport_overhead_(0),
338 video_transport_overhead_(0) {}
337 339
338 FakeCall::~FakeCall() { 340 FakeCall::~FakeCall() {
339 EXPECT_EQ(0u, video_send_streams_.size()); 341 EXPECT_EQ(0u, video_send_streams_.size());
340 EXPECT_EQ(0u, audio_send_streams_.size()); 342 EXPECT_EQ(0u, audio_send_streams_.size());
341 EXPECT_EQ(0u, video_receive_streams_.size()); 343 EXPECT_EQ(0u, video_receive_streams_.size());
342 EXPECT_EQ(0u, audio_receive_streams_.size()); 344 EXPECT_EQ(0u, audio_receive_streams_.size());
343 } 345 }
344 346
345 webrtc::Call::Config FakeCall::GetConfig() const { 347 webrtc::Call::Config FakeCall::GetConfig() const {
346 return config_; 348 return config_;
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 } 599 }
598 600
599 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 601 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
600 last_sent_packet_ = sent_packet; 602 last_sent_packet_ = sent_packet;
601 if (sent_packet.packet_id >= 0) { 603 if (sent_packet.packet_id >= 0) {
602 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; 604 last_sent_nonnegative_packet_id_ = sent_packet.packet_id;
603 } 605 }
604 } 606 }
605 607
606 } // namespace cricket 608 } // namespace cricket
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/engine/fakewebrtcvideoengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698