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

Unified Diff: talk/media/webrtc/fakewebrtccall.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | talk/media/webrtc/fakewebrtccall.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/webrtc/fakewebrtccall.h
diff --git a/talk/media/webrtc/fakewebrtccall.h b/talk/media/webrtc/fakewebrtccall.h
index de56a033bceaa3c53b71e37e256f558c16342008..212c062b0bd932ffb0b4c8038ada1a3aa78ecc34 100644
--- a/talk/media/webrtc/fakewebrtccall.h
+++ b/talk/media/webrtc/fakewebrtccall.h
@@ -75,11 +75,8 @@ class FakeAudioReceiveStream : public webrtc::AudioReceiveStream {
explicit FakeAudioReceiveStream(
const webrtc::AudioReceiveStream::Config& config);
- // webrtc::AudioReceiveStream implementation.
- webrtc::AudioReceiveStream::Stats GetStats() const override;
-
const webrtc::AudioReceiveStream::Config& GetConfig() const;
-
+ void SetStats(const webrtc::AudioReceiveStream::Stats& stats);
int received_packets() const { return received_packets_; }
void IncrementReceivedPackets();
@@ -97,7 +94,13 @@ class FakeAudioReceiveStream : public webrtc::AudioReceiveStream {
return true;
}
+ // webrtc::AudioReceiveStream implementation.
+ webrtc::AudioReceiveStream::Stats GetStats() const override {
+ return stats_;
+ }
+
webrtc::AudioReceiveStream::Config config_;
+ webrtc::AudioReceiveStream::Stats stats_;
int received_packets_;
};
« no previous file with comments | « no previous file | talk/media/webrtc/fakewebrtccall.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698