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

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

Issue 1390753002: Implement AudioReceiveStream::GetStats(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: merge master Created 5 years, 2 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 | « talk/media/webrtc/fakewebrtccall.h ('k') | talk/media/webrtc/fakewebrtcvoiceengine.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 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 FakeAudioSendStream::GetConfig() const { 47 FakeAudioSendStream::GetConfig() const {
48 return config_; 48 return config_;
49 } 49 }
50 50
51 FakeAudioReceiveStream::FakeAudioReceiveStream( 51 FakeAudioReceiveStream::FakeAudioReceiveStream(
52 const webrtc::AudioReceiveStream::Config& config) 52 const webrtc::AudioReceiveStream::Config& config)
53 : config_(config), received_packets_(0) { 53 : config_(config), received_packets_(0) {
54 RTC_DCHECK(config.voe_channel_id != -1); 54 RTC_DCHECK(config.voe_channel_id != -1);
55 } 55 }
56 56
57 webrtc::AudioReceiveStream::Stats FakeAudioReceiveStream::GetStats() const {
58 return webrtc::AudioReceiveStream::Stats();
59 }
60
61 const webrtc::AudioReceiveStream::Config& 57 const webrtc::AudioReceiveStream::Config&
62 FakeAudioReceiveStream::GetConfig() const { 58 FakeAudioReceiveStream::GetConfig() const {
63 return config_; 59 return config_;
64 } 60 }
65 61
62 void FakeAudioReceiveStream::SetStats(
63 const webrtc::AudioReceiveStream::Stats& stats) {
64 stats_ = stats;
65 }
66
66 void FakeAudioReceiveStream::IncrementReceivedPackets() { 67 void FakeAudioReceiveStream::IncrementReceivedPackets() {
67 received_packets_++; 68 received_packets_++;
68 } 69 }
69 70
70 FakeVideoSendStream::FakeVideoSendStream( 71 FakeVideoSendStream::FakeVideoSendStream(
71 const webrtc::VideoSendStream::Config& config, 72 const webrtc::VideoSendStream::Config& config,
72 const webrtc::VideoEncoderConfig& encoder_config) 73 const webrtc::VideoEncoderConfig& encoder_config)
73 : sending_(false), 74 : sending_(false),
74 config_(config), 75 config_(config),
75 codec_settings_set_(false), 76 codec_settings_set_(false),
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 405 }
405 406
406 void FakeCall::SignalNetworkState(webrtc::NetworkState state) { 407 void FakeCall::SignalNetworkState(webrtc::NetworkState state) {
407 network_state_ = state; 408 network_state_ = state;
408 } 409 }
409 410
410 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 411 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
411 last_sent_packet_ = sent_packet; 412 last_sent_packet_ = sent_packet;
412 } 413 }
413 } // namespace cricket 414 } // namespace cricket
OLDNEW
« no previous file with comments | « talk/media/webrtc/fakewebrtccall.h ('k') | talk/media/webrtc/fakewebrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698