Index: webrtc/media/engine/fakewebrtccall.h |
diff --git a/webrtc/media/engine/fakewebrtccall.h b/webrtc/media/engine/fakewebrtccall.h |
index a2ac0799569d513725a6b31a84d2f49ebfb1bfa0..8581d829d659de1c50fb2aeb51007744c44cc5d9 100644 |
--- a/webrtc/media/engine/fakewebrtccall.h |
+++ b/webrtc/media/engine/fakewebrtccall.h |
@@ -79,11 +79,12 @@ class FakeAudioReceiveStream final : public webrtc::AudioReceiveStream { |
bool DeliverRtp(const uint8_t* packet, |
size_t length, |
const webrtc::PacketTime& packet_time); |
+ bool started() const { return started_; } |
private: |
// webrtc::AudioReceiveStream implementation. |
- void Start() override {} |
- void Stop() override {} |
+ void Start() override { started_ = true; } |
+ void Stop() override { started_ = false; } |
webrtc::AudioReceiveStream::Stats GetStats() const override; |
void SetSink(std::unique_ptr<webrtc::AudioSinkInterface> sink) override; |
@@ -95,6 +96,7 @@ class FakeAudioReceiveStream final : public webrtc::AudioReceiveStream { |
std::unique_ptr<webrtc::AudioSinkInterface> sink_; |
float gain_ = 1.0f; |
rtc::Buffer last_packet_; |
+ bool started_ = false; |
}; |
class FakeVideoSendStream final : public webrtc::VideoSendStream, |