• Home
  • Raw
  • Download

Lines Matching refs:observer

504     rtc::scoped_ptr<DummyDtmfObserver> observer(new DummyDtmfObserver());  in VerifyDtmf()  local
519 dtmf_sender->RegisterObserver(observer.get()); in VerifyDtmf()
528 EXPECT_TRUE_WAIT(observer->completed(), kMaxWaitMs); in VerifyDtmf()
533 observer->Verify(tones); in VerifyDtmf()
595 observer(new rtc::RefCountedObject<MockStatsObserver>()); in GetAudioOutputLevelStats() local
597 observer, track, PeerConnectionInterface::kStatsOutputLevelStandard)); in GetAudioOutputLevelStats()
598 EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); in GetAudioOutputLevelStats()
599 EXPECT_NE(0, observer->timestamp()); in GetAudioOutputLevelStats()
600 return observer->AudioOutputLevel(); in GetAudioOutputLevelStats()
605 observer(new rtc::RefCountedObject<MockStatsObserver>()); in GetAudioInputLevelStats() local
607 observer, nullptr, PeerConnectionInterface::kStatsOutputLevelStandard)); in GetAudioInputLevelStats()
608 EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); in GetAudioInputLevelStats()
609 EXPECT_NE(0, observer->timestamp()); in GetAudioInputLevelStats()
610 return observer->AudioInputLevel(); in GetAudioInputLevelStats()
615 observer(new rtc::RefCountedObject<MockStatsObserver>()); in GetBytesReceivedStats() local
617 observer, track, PeerConnectionInterface::kStatsOutputLevelStandard)); in GetBytesReceivedStats()
618 EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); in GetBytesReceivedStats()
619 EXPECT_NE(0, observer->timestamp()); in GetBytesReceivedStats()
620 return observer->BytesReceived(); in GetBytesReceivedStats()
625 observer(new rtc::RefCountedObject<MockStatsObserver>()); in GetBytesSentStats() local
627 observer, track, PeerConnectionInterface::kStatsOutputLevelStandard)); in GetBytesSentStats()
628 EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); in GetBytesSentStats()
629 EXPECT_NE(0, observer->timestamp()); in GetBytesSentStats()
630 return observer->BytesSent(); in GetBytesSentStats()
635 observer(new rtc::RefCountedObject<MockStatsObserver>()); in GetAvailableReceivedBandwidthStats() local
637 observer, nullptr, PeerConnectionInterface::kStatsOutputLevelStandard)); in GetAvailableReceivedBandwidthStats()
638 EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); in GetAvailableReceivedBandwidthStats()
639 EXPECT_NE(0, observer->timestamp()); in GetAvailableReceivedBandwidthStats()
640 int bw = observer->AvailableReceiveBandwidth(); in GetAvailableReceivedBandwidthStats()
646 observer(new rtc::RefCountedObject<MockStatsObserver>()); in GetDtlsCipherStats() local
648 observer, nullptr, PeerConnectionInterface::kStatsOutputLevelStandard)); in GetDtlsCipherStats()
649 EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); in GetDtlsCipherStats()
650 EXPECT_NE(0, observer->timestamp()); in GetDtlsCipherStats()
651 return observer->DtlsCipher(); in GetDtlsCipherStats()
656 observer(new rtc::RefCountedObject<MockStatsObserver>()); in GetSrtpCipherStats() local
658 observer, nullptr, PeerConnectionInterface::kStatsOutputLevelStandard)); in GetSrtpCipherStats()
659 EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); in GetSrtpCipherStats()
660 EXPECT_NE(0, observer->timestamp()); in GetSrtpCipherStats()
661 return observer->SrtpCipher(); in GetSrtpCipherStats()
812 observer(new rtc::RefCountedObject< in DoCreateOfferAnswer() local
815 pc()->CreateOffer(observer, &session_description_constraints_); in DoCreateOfferAnswer()
817 pc()->CreateAnswer(observer, &session_description_constraints_); in DoCreateOfferAnswer()
819 EXPECT_EQ_WAIT(true, observer->called(), kMaxWaitMs); in DoCreateOfferAnswer()
820 *desc = observer->release_desc(); in DoCreateOfferAnswer()
821 if (observer->result() && ExpectIceRestart()) { in DoCreateOfferAnswer()
824 return observer->result(); in DoCreateOfferAnswer()
837 observer(new rtc::RefCountedObject< in DoSetLocalDescription() local
840 pc()->SetLocalDescription(observer, desc); in DoSetLocalDescription()
858 observer(new rtc::RefCountedObject< in DoSetRemoteDescription() local
861 pc()->SetRemoteDescription(observer, desc); in DoSetRemoteDescription()
862 EXPECT_TRUE_WAIT(observer->called(), kMaxWaitMs); in DoSetRemoteDescription()
863 return observer->result(); in DoSetRemoteDescription()