Index: webrtc/media/engine/fakewebrtccall.h |
diff --git a/webrtc/media/engine/fakewebrtccall.h b/webrtc/media/engine/fakewebrtccall.h |
index 5a9ff300f3149fd428891ca2da2a3aad9999b363..89a644a2960a121e07fb8707ebcd8e9fd8226f3e 100644 |
--- a/webrtc/media/engine/fakewebrtccall.h |
+++ b/webrtc/media/engine/fakewebrtccall.h |
@@ -44,11 +44,12 @@ class FakeAudioSendStream final : public webrtc::AudioSendStream { |
const webrtc::AudioSendStream::Config& GetConfig() const; |
void SetStats(const webrtc::AudioSendStream::Stats& stats); |
TelephoneEvent GetLatestTelephoneEvent() const; |
+ bool IsSending() const { return sending_; } |
private: |
// webrtc::SendStream implementation. |
- void Start() override {} |
- void Stop() override {} |
+ void Start() override { sending_ = true; } |
+ void Stop() override { sending_ = false; } |
void SignalNetworkState(webrtc::NetworkState state) override {} |
bool DeliverRtcp(const uint8_t* packet, size_t length) override { |
return true; |
@@ -62,6 +63,7 @@ class FakeAudioSendStream final : public webrtc::AudioSendStream { |
TelephoneEvent latest_telephone_event_; |
webrtc::AudioSendStream::Config config_; |
webrtc::AudioSendStream::Stats stats_; |
+ bool sending_ = false; |
}; |
class FakeAudioReceiveStream final : public webrtc::AudioReceiveStream { |