/external/webrtc/talk/media/base/ |
D | videocapturer_unittest.cc | 39 using cricket::FakeVideoCapturer; 55 : capture_state_(cricket::CS_STOPPED), in VideoCapturerTest() 69 void OnVideoFrame(cricket::VideoCapturer*, const cricket::VideoFrame* frame) { in OnVideoFrame() 78 void OnStateChange(cricket::VideoCapturer*, in OnStateChange() 79 cricket::CaptureState capture_state) { in OnStateChange() 83 cricket::CaptureState capture_state() { return capture_state_; } in capture_state() 89 cricket::FakeVideoCapturer capturer_; 90 cricket::CaptureState capture_state_; 93 cricket::FakeVideoRenderer renderer_; 99 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat( in TEST_F() [all …]
|
D | streamparams_unittest.cc | 38 static cricket::StreamParams CreateStreamParamsWithSsrcGroup( in CreateStreamParamsWithSsrcGroup() 42 cricket::StreamParams stream; in CreateStreamParamsWithSsrcGroup() 44 cricket::SsrcGroup sg(semantics, ssrcs); in CreateStreamParamsWithSsrcGroup() 51 cricket::SsrcGroup ssrc_groups[] = { in TEST() 52 cricket::SsrcGroup("ABC", MAKE_VECTOR(kSsrcs1)), in TEST() 53 cricket::SsrcGroup("ABC", MAKE_VECTOR(kSsrcs2)), in TEST() 54 cricket::SsrcGroup("Abc", MAKE_VECTOR(kSsrcs2)), in TEST() 55 cricket::SsrcGroup("abc", MAKE_VECTOR(kSsrcs2)), in TEST() 67 cricket::SsrcGroup sg1("ABC", MAKE_VECTOR(kSsrcs1)); in TEST() 70 cricket::SsrcGroup sg2("Abc", MAKE_VECTOR(kSsrcs1)); in TEST() [all …]
|
D | cpuid_unittest.cc | 38 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasARM); in TEST() 40 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasNEON); in TEST() 42 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasX86); in TEST() 44 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasSSE2); in TEST() 46 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasSSSE3); in TEST() 48 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasSSE41); in TEST() 50 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasSSE42); in TEST() 52 << cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasAVX); in TEST() 53 bool has_arm = cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasARM); in TEST() 54 bool has_x86 = cricket::CpuInfo::TestCpuFlag(cricket::CpuInfo::kCpuHasX86); in TEST() [all …]
|
D | fakevideocapturer.h | 43 namespace cricket { 46 class FakeVideoCapturer : public cricket::VideoCapturer { 55 set_frame_factory(new cricket::WebRtcVideoFrameFactory()); in FakeVideoCapturer() 58 std::vector<cricket::VideoFormat> formats; in FakeVideoCapturer() 59 formats.push_back(cricket::VideoFormat(1280, 720, in FakeVideoCapturer() 60 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer() 61 formats.push_back(cricket::VideoFormat(640, 480, in FakeVideoCapturer() 62 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer() 63 formats.push_back(cricket::VideoFormat(320, 240, in FakeVideoCapturer() 64 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakeVideoCapturer() [all …]
|
D | rtpdataengine_unittest.cc | 62 const cricket::ReceiveDataParams& params, in OnDataReceived() 73 cricket::ReceiveDataParams last_received_data_params() const { in last_received_data_params() 81 cricket::ReceiveDataParams last_received_data_params_; 88 iface_.reset(new cricket::FakeNetworkInterface()); in SetUp() 98 cricket::RtpDataEngine* CreateEngine(FakeTiming* timing) { in CreateEngine() 99 cricket::RtpDataEngine* dme = new cricket::RtpDataEngine(); in CreateEngine() 104 cricket::RtpDataMediaChannel* CreateChannel() { in CreateChannel() 108 cricket::RtpDataMediaChannel* CreateChannel(cricket::RtpDataEngine* dme) { in CreateChannel() 109 cricket::RtpDataMediaChannel* channel = in CreateChannel() 110 static_cast<cricket::RtpDataMediaChannel*>(dme->CreateChannel( in CreateChannel() [all …]
|
D | videoengine_unittest.h | 69 inline bool IsEqualRes(const cricket::VideoCodec& a, int w, int h, int fps) { in IsEqualRes() 73 inline bool IsEqualCodec(const cricket::VideoCodec& a, in IsEqualCodec() 74 const cricket::VideoCodec& b) { in IsEqualCodec() 80 inline std::ostream& operator<<(std::ostream& s, const cricket::VideoCodec& c) { 87 inline int TimeBetweenSend(const cricket::VideoCodec& codec) { in TimeBetweenSend() 89 cricket::VideoFormat::FpsToInterval(codec.framerate) / in TimeBetweenSend() 107 cricket::VideoCapturer* video_capturer = T::GetVideoCapturer(); in set_has_senders() 115 void OnLocalFrame(cricket::VideoCapturer*, in OnLocalFrame() 116 const cricket::VideoFrame*) { in OnLocalFrame() 118 void OnLocalFrameFormat(cricket::VideoCapturer*, in OnLocalFrameFormat() [all …]
|
D | videoframe_unittest.h | 79 bool success = LoadFrame(kImageFilename, cricket::FOURCC_I420, in LoadFrameNoRepeat() 161 rtc::Pathname path(cricket::GetTestFilePath(filename)); in LoadSample() 185 const cricket::VideoFrame& frame) { in DumpFrame() 189 size_t out_size = cricket::VideoFrame::SizeOf(frame.GetWidth(), in DumpFrame() 394 if (fourcc == cricket::FOURCC_YUY2) { in GetYuv422Packing() 396 } else if (fourcc == cricket::FOURCC_UYVY) { in GetYuv422Packing() 409 if (fourcc == cricket::FOURCC_RAW) { in GetRgbPacking() 411 } else if (fourcc == cricket::FOURCC_24BG) { in GetRgbPacking() 413 } else if (fourcc == cricket::FOURCC_ABGR) { in GetRgbPacking() 415 } else if (fourcc == cricket::FOURCC_BGRA) { in GetRgbPacking() [all …]
|
D | capturemanager_unittest.cc | 39 const cricket::VideoFormatPod kCameraFormats[] = { 40 {640, 480, cricket::VideoFormat::FpsToInterval(kFps), cricket::FOURCC_I420}, 41 {320, 240, cricket::VideoFormat::FpsToInterval(kFps), cricket::FOURCC_I420} 54 capture_state_ = cricket::CS_STOPPED; in SetUp() 60 std::vector<cricket::VideoFormat> formats; in PopulateSupportedFormats() 62 formats.push_back(cricket::VideoFormat(kCameraFormats[i])); in PopulateSupportedFormats() 67 bool WasRenderedResolution(cricket::VideoFormat format) { in WasRenderedResolution() 71 cricket::CaptureState capture_state() { return capture_state_; } in capture_state() 73 void OnCapturerStateChange(cricket::VideoCapturer* capturer, in OnCapturerStateChange() 74 cricket::CaptureState capture_state) { in OnCapturerStateChange() [all …]
|
/external/webrtc/webrtc/p2p/base/ |
D | transport_unittest.cc | 17 using cricket::Candidate; 18 using cricket::Candidates; 19 using cricket::Transport; 20 using cricket::FakeTransport; 21 using cricket::TransportChannel; 22 using cricket::FakeTransportChannel; 23 using cricket::IceRole; 24 using cricket::TransportDescription; 63 transport_->SetIceRole(cricket::ICEROLE_CONTROLLING); in TEST_F() 65 cricket::TransportDescription local_desc(kIceUfrag1, kIcePwd1); in TEST_F() [all …]
|
D | transportcontroller_unittest.cc | 32 using cricket::Candidate; 33 using cricket::Candidates; 34 using cricket::FakeTransportChannel; 35 using cricket::FakeTransportController; 36 using cricket::IceConnectionState; 37 using cricket::IceGatheringState; 38 using cricket::TransportChannel; 39 using cricket::TransportController; 40 using cricket::TransportDescription; 41 using cricket::TransportStats; [all …]
|
D | dtlstransportchannel_unittest.cc | 41 using cricket::ConnectionRole; 71 void SetupChannels(int count, cricket::IceRole role) { in SetupChannels() 72 transport_.reset(new cricket::DtlsTransport<cricket::FakeTransport>( in SetupChannels() 77 (role == cricket::ICEROLE_CONTROLLING) ? 1 : 2); in SetupChannels() 80 cricket::DtlsTransportChannelWrapper* channel = in SetupChannels() 81 static_cast<cricket::DtlsTransportChannelWrapper*>( in SetupChannels() 99 cricket::Transport* transport() { return transport_.get(); } in transport() 101 cricket::FakeTransportChannel* GetFakeChannel(int component) { in GetFakeChannel() 102 cricket::TransportChannelImpl* ch = transport_->GetChannel(component); in GetFakeChannel() 103 cricket::DtlsTransportChannelWrapper* wrapper = in GetFakeChannel() [all …]
|
D | p2ptransportchannel_unittest.cc | 32 using cricket::kDefaultPortAllocatorFlags; 33 using cricket::kMinimumStepDelay; 34 using cricket::kDefaultStepDelay; 35 using cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET; 36 using cricket::ServerAddresses; 40 static const int kOnlyLocalPorts = cricket::PORTALLOCATOR_DISABLE_STUN | 41 cricket::PORTALLOCATOR_DISABLE_RELAY | 42 cricket::PORTALLOCATOR_DISABLE_TCP; 73 static const SocketAddress kStunAddr("99.99.99.1", cricket::STUN_SERVER_PORT); 83 cricket::STUN_SERVER_PORT); [all …]
|
D | relayport_unittest.cc | 56 relay_port_(cricket::RelayPort::Create(main_, &socket_factory_, in RelayPortTest() 60 relay_server_(new cricket::RelayServer(main_)) { in RelayPortTest() 70 void OnConnectFailure(const cricket::ProtocolAddress* addr) { in OnConnectFailure() 74 void OnSoftTimeout(const cricket::ProtocolAddress* addr) { in OnSoftTimeout() 108 relay_server_->AddInternalServerSocket(server_socket, cricket::PROTO_TCP); in TestConnectUdp() 112 cricket::ProtocolAddress(kRelayUdpAddr, cricket::PROTO_UDP)); in TestConnectUdp() 114 cricket::ProtocolAddress(kRelayTcpAddr, cricket::PROTO_TCP)); in TestConnectUdp() 138 cricket::ProtocolAddress fake_protocol_address = in TestConnectTcp() 139 cricket::ProtocolAddress(kRelayUdpAddr, cricket::PROTO_UDP); in TestConnectTcp() 143 relay_server_->AddInternalServerSocket(server_socket, cricket::PROTO_TCP); in TestConnectTcp() [all …]
|
/external/webrtc/talk/session/media/ |
D | rtcpmuxfilter_unittest.cc | 34 cricket::RtcpMuxFilter filter; in TEST() 41 filter.SetOffer(true, cricket::CS_LOCAL); in TEST() 44 filter.SetAnswer(true, cricket::CS_REMOTE); in TEST() 49 cricket::RtcpMuxFilter filter; in TEST() 56 filter.SetOffer(true, cricket::CS_REMOTE); in TEST() 59 filter.SetAnswer(true, cricket::CS_LOCAL); in TEST() 64 cricket::RtcpMuxFilter filter; in TEST() 68 filter.SetOffer(true, cricket::CS_REMOTE); in TEST() 70 filter.SetProvisionalAnswer(false, cricket::CS_LOCAL); in TEST() 73 filter.SetProvisionalAnswer(true, cricket::CS_LOCAL); in TEST() [all …]
|
D | channelmanager_unittest.cc | 40 namespace cricket { namespace 56 : fme_(new cricket::FakeMediaEngine()), in ChannelManagerTest() 57 fdme_(new cricket::FakeDataEngine()), in ChannelManagerTest() 58 fcm_(new cricket::FakeCaptureManager()), in ChannelManagerTest() 59 cm_(new cricket::ChannelManager(fme_, in ChannelManagerTest() 66 new cricket::FakeTransportController(ICEROLE_CONTROLLING)) {} in ChannelManagerTest() 83 cricket::FakeMediaEngine* fme_; 84 cricket::FakeDataEngine* fdme_; 85 cricket::FakeCaptureManager* fcm_; 86 cricket::ChannelManager* cm_; [all …]
|
/external/webrtc/webrtc/p2p/client/ |
D | portallocator_unittest.cc | 34 using cricket::ServerAddresses; 49 static const SocketAddress kStunAddr("99.99.99.1", cricket::STUN_SERVER_PORT); 75 namespace cricket { namespace 78 std::ostream& operator<<(std::ostream& os, const cricket::Candidate& c) { in operator <<() 94 stun_server_(cricket::TestStunServer::Create(Thread::Current(), in PortAllocatorTest() 101 cricket::ServerAddresses stun_servers; in PortAllocatorTest() 105 allocator_.reset(new cricket::BasicPortAllocator( in PortAllocatorTest() 109 allocator_->set_step_delay(cricket::kMinimumStepDelay); in PortAllocatorTest() 143 allocator_.reset(new cricket::BasicPortAllocator(&network_manager_)); in ResetWithNoServersOrNat() 144 allocator_->set_step_delay(cricket::kMinimumStepDelay); in ResetWithNoServersOrNat() [all …]
|
/external/webrtc/talk/app/webrtc/ |
D | webrtcsession.h | 47 namespace cricket { 115 typedef std::map<std::string, cricket::TransportStats> TransportStatsMap; 157 cricket::PortAllocator* port_allocator); 163 cricket::PortAllocator* port_allocator() const { return port_allocator_; } in port_allocator() 193 virtual cricket::VoiceChannel* voice_channel() { in voice_channel() 196 virtual cricket::VideoChannel* video_channel() { in video_channel() 199 virtual cricket::DataChannel* data_channel() { in data_channel() 203 void SetSdesPolicy(cricket::SecurePolicy secure_policy); 204 cricket::SecurePolicy SdesPolicy() const; 211 bool GetSslRole(const cricket::BaseChannel* channel, rtc::SSLRole* role); [all …]
|
D | videosource.cc | 37 using cricket::CaptureState; 53 static const cricket::VideoFormatPod kDefaultFormat = 54 {640, 480, FPS_TO_INTERVAL(30), cricket::FOURCC_ANY}; 57 static const cricket::VideoFormatPod kVideoFormats[] = { 58 {1920, 1080, FPS_TO_INTERVAL(30), cricket::FOURCC_ANY}, 59 {1280, 720, FPS_TO_INTERVAL(30), cricket::FOURCC_ANY}, 60 {960, 720, FPS_TO_INTERVAL(30), cricket::FOURCC_ANY}, 61 {640, 360, FPS_TO_INTERVAL(30), cricket::FOURCC_ANY}, 62 {640, 480, FPS_TO_INTERVAL(30), cricket::FOURCC_ANY}, 63 {320, 240, FPS_TO_INTERVAL(30), cricket::FOURCC_ANY}, [all …]
|
D | videosource.h | 49 namespace cricket { 67 cricket::ChannelManager* channel_manager, 68 cricket::VideoCapturer* capturer, 75 virtual const cricket::VideoOptions* options() const { return &options_; } in options() 76 virtual cricket::VideoRenderer* FrameInput(); 78 virtual cricket::VideoCapturer* GetVideoCapturer() { in GetVideoCapturer() 87 virtual void AddSink(cricket::VideoRenderer* output); 88 virtual void RemoveSink(cricket::VideoRenderer* output); 91 VideoSource(cricket::ChannelManager* channel_manager, 92 cricket::VideoCapturer* capturer, [all …]
|
D | webrtcsession.cc | 59 using cricket::ContentInfo; 60 using cricket::ContentInfos; 61 using cricket::MediaContentDescription; 62 using cricket::SessionDescription; 63 using cricket::TransportInfo; 65 using cricket::LOCAL_PORT_TYPE; 66 using cricket::STUN_PORT_TYPE; 67 using cricket::RELAY_PORT_TYPE; 68 using cricket::PRFLX_PORT_TYPE; 98 const cricket::Candidate& local, in GetIceCandidatePairCounter() [all …]
|
D | androidvideocapturer.cc | 44 class AndroidVideoCapturer::FrameFactory : public cricket::VideoFrameFactory { 53 captured_frame_.data_size = cricket::CapturedFrame::kUnknownDataSize; in FrameFactory() 54 captured_frame_.fourcc = static_cast<uint32_t>(cricket::FOURCC_ANY); in FrameFactory() 77 const cricket::CapturedFrame* GetCapturedFrame() const { in GetCapturedFrame() 81 cricket::VideoFrame* CreateAliasedFrame( in CreateAliasedFrame() 82 const cricket::CapturedFrame* captured_frame, in CreateAliasedFrame() 89 rtc::scoped_ptr<cricket::VideoFrame> frame(new cricket::WebRtcVideoFrame( in CreateAliasedFrame() 98 cricket::VideoFrame* CreateAliasedFrame( in CreateAliasedFrame() 99 const cricket::CapturedFrame* input_frame, in CreateAliasedFrame() 113 return new cricket::WebRtcVideoFrame( in CreateAliasedFrame() [all …]
|
D | jsepsessiondescription_unittest.cc | 58 static cricket::SessionDescription* CreateCricketSessionDescription() { in CreateCricketSessionDescription() 59 cricket::SessionDescription* desc(new cricket::SessionDescription()); in CreateCricketSessionDescription() 61 scoped_ptr<cricket::AudioContentDescription> audio( in CreateCricketSessionDescription() 62 new cricket::AudioContentDescription()); in CreateCricketSessionDescription() 65 scoped_ptr<cricket::VideoContentDescription> video( in CreateCricketSessionDescription() 66 new cricket::VideoContentDescription()); in CreateCricketSessionDescription() 68 audio->AddCodec(cricket::AudioCodec(103, "ISAC", 16000, 0, 0, 0)); in CreateCricketSessionDescription() 69 desc->AddContent(cricket::CN_AUDIO, cricket::NS_JINGLE_RTP, in CreateCricketSessionDescription() 72 video->AddCodec(cricket::VideoCodec(120, "VP8", 640, 480, 30, 0)); in CreateCricketSessionDescription() 73 desc->AddContent(cricket::CN_VIDEO, cricket::NS_JINGLE_RTP, in CreateCricketSessionDescription() [all …]
|
/external/webrtc/talk/app/webrtc/test/ |
D | fakeperiodicvideocapturer.h | 39 class FakePeriodicVideoCapturer : public cricket::FakeVideoCapturer { 42 std::vector<cricket::VideoFormat> formats; in FakePeriodicVideoCapturer() 43 formats.push_back(cricket::VideoFormat(1280, 720, in FakePeriodicVideoCapturer() 44 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakePeriodicVideoCapturer() 45 formats.push_back(cricket::VideoFormat(640, 480, in FakePeriodicVideoCapturer() 46 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakePeriodicVideoCapturer() 47 formats.push_back(cricket::VideoFormat(640, 360, in FakePeriodicVideoCapturer() 48 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakePeriodicVideoCapturer() 49 formats.push_back(cricket::VideoFormat(320, 240, in FakePeriodicVideoCapturer() 50 cricket::VideoFormat::FpsToInterval(30), cricket::FOURCC_I420)); in FakePeriodicVideoCapturer() [all …]
|
/external/webrtc/talk/media/sctp/ |
D | sctpdataengine_unittest.cc | 54 class SctpFakeNetworkInterface : public cricket::MediaChannel::NetworkInterface, 62 void SetDestination(cricket::DataMediaChannel* dest) { dest_ = dest; } in SetDestination() 112 cricket::DataMediaChannel* dest_; 127 last_params_ = cricket::ReceiveDataParams(); in Clear() 130 virtual void OnDataReceived(const cricket::ReceiveDataParams& params, in OnDataReceived() 139 cricket::ReceiveDataParams last_params() const { return last_params_; } in last_params() 144 cricket::ReceiveDataParams last_params_; 168 void BindSelf(cricket::SctpDataMediaChannel* channel) { in BindSelf() 189 SignalChannelClosedReopener(cricket::SctpDataMediaChannel* channel, in SignalChannelClosedReopener() 190 cricket::SctpDataMediaChannel* peer) in SignalChannelClosedReopener() [all …]
|
/external/webrtc/talk/media/webrtc/ |
D | webrtcvoiceengine_unittest.cc | 42 using cricket::kRtpAudioLevelHeaderExtension; 43 using cricket::kRtpAbsoluteSenderTimeHeaderExtension; 47 const cricket::AudioCodec kPcmuCodec(0, "PCMU", 8000, 64000, 1, 0); 48 const cricket::AudioCodec kIsacCodec(103, "ISAC", 16000, 32000, 1, 0); 49 const cricket::AudioCodec kOpusCodec(111, "opus", 48000, 64000, 2, 0); 50 const cricket::AudioCodec kG722CodecVoE(9, "G722", 16000, 64000, 1, 0); 51 const cricket::AudioCodec kG722CodecSdp(9, "G722", 8000, 64000, 1, 0); 52 const cricket::AudioCodec kRedCodec(117, "red", 8000, 0, 1, 0); 53 const cricket::AudioCodec kCn8000Codec(13, "CN", 8000, 0, 1, 0); 54 const cricket::AudioCodec kCn16000Codec(105, "CN", 16000, 0, 1, 0); [all …]
|