/external/webrtc/webrtc/base/ |
D | sslstreamadapter_unittest.cc | 68 if (!(rtc::SSLStreamAdapter::feature())) { \ 75 class SSLDummyStreamBase : public rtc::StreamInterface, 80 rtc::StreamInterface* in, in SSLDummyStreamBase() 81 rtc::StreamInterface* out) : in SSLDummyStreamBase() 91 rtc::StreamState GetState() const override { return rtc::SS_OPEN; } in GetState() 93 rtc::StreamResult Read(void* buffer, size_t buffer_len, in Read() 95 rtc::StreamResult r; in Read() 98 if (r == rtc::SR_BLOCK) in Read() 99 return rtc::SR_BLOCK; in Read() 100 if (r == rtc::SR_EOS) in Read() [all …]
|
D | ssladapter_unittest.cc | 24 static rtc::AsyncSocket* CreateSocket(const rtc::SSLMode& ssl_mode) { in CreateSocket() 25 rtc::SocketAddress address(rtc::IPAddress(INADDR_ANY), 0); in CreateSocket() 27 rtc::AsyncSocket* socket = rtc::Thread::Current()-> in CreateSocket() 29 address.family(), (ssl_mode == rtc::SSL_MODE_DTLS) ? in CreateSocket() 36 static std::string GetSSLProtocolName(const rtc::SSLMode& ssl_mode) { in GetSSLProtocolName() 37 return (ssl_mode == rtc::SSL_MODE_DTLS) ? "DTLS" : "TLS"; in GetSSLProtocolName() 42 explicit SSLAdapterTestDummyClient(const rtc::SSLMode& ssl_mode) in SSLAdapterTestDummyClient() 44 rtc::AsyncSocket* socket = CreateSocket(ssl_mode_); in SSLAdapterTestDummyClient() 46 ssl_adapter_.reset(rtc::SSLAdapter::Create(socket)); in SSLAdapterTestDummyClient() 61 rtc::SocketAddress GetAddress() const { in GetAddress() [all …]
|
D | proxy_unittest.cc | 21 using rtc::Socket; 22 using rtc::Thread; 23 using rtc::SocketAddress; 33 class AutoDetectProxyRunner : public rtc::AutoDetectProxy { 46 ProxyTest() : ss_(new rtc::VirtualSocketServer(NULL)) { in ProxyTest() 48 socks_.reset(new rtc::SocksProxyServer( in ProxyTest() 50 https_.reset(new rtc::HttpListenServer()); in ProxyTest() 57 rtc::SocketServer* ss() { return ss_.get(); } in ss() 59 rtc::ProxyType DetectProxyType(const SocketAddress& address) { in DetectProxyType() 60 rtc::ProxyType type; in DetectProxyType() [all …]
|
D | systeminfo_unittest.cc | 17 rtc::SystemInfo info; in TEST() 25 rtc::SystemInfo info; in TEST() 27 EXPECT_TRUE(rtc::string_match(info.GetCpuVendor().c_str(), in TEST() 29 rtc::string_match(info.GetCpuVendor().c_str(), in TEST() 32 EXPECT_TRUE(rtc::string_match(info.GetCpuVendor().c_str(), "ARM")); in TEST() 39 rtc::SystemInfo info; in TEST() 41 rtc::SystemInfo::Architecture architecture = info.GetCpuArchitecture(); in TEST() 44 EXPECT_EQ(rtc::SystemInfo::SI_ARCH_X64, architecture); in TEST() 47 EXPECT_EQ(rtc::SystemInfo::SI_ARCH_ARM, architecture); in TEST() 49 EXPECT_EQ(rtc::SystemInfo::SI_ARCH_X86, architecture); in TEST() [all …]
|
D | sslidentity_unittest.cc | 18 using rtc::SSLIdentity; 73 identity_rsa1_.reset(SSLIdentity::Generate("test1", rtc::KT_RSA)); in SetUp() 74 identity_rsa2_.reset(SSLIdentity::Generate("test2", rtc::KT_RSA)); in SetUp() 75 identity_ecdsa1_.reset(SSLIdentity::Generate("test3", rtc::KT_ECDSA)); in SetUp() 76 identity_ecdsa2_.reset(SSLIdentity::Generate("test4", rtc::KT_ECDSA)); in SetUp() 83 test_cert_.reset(rtc::SSLCertificate::FromPEMString(kTestCertificate)); in SetUp() 92 ASSERT_EQ(rtc::DIGEST_SHA_256, digest_algorithm); in TestGetSignatureDigestAlgorithm() 96 ASSERT_EQ(rtc::DIGEST_SHA_256, digest_algorithm); in TestGetSignatureDigestAlgorithm() 100 ASSERT_EQ(rtc::DIGEST_SHA_256, digest_algorithm); in TestGetSignatureDigestAlgorithm() 104 ASSERT_EQ(rtc::DIGEST_SHA_256, digest_algorithm); in TestGetSignatureDigestAlgorithm() [all …]
|
/external/webrtc/webrtc/p2p/base/ |
D | stunport.h | 21 namespace rtc { 31 static UDPPort* Create(rtc::Thread* thread, in Create() 32 rtc::PacketSocketFactory* factory, in Create() 33 rtc::Network* network, in Create() 34 rtc::AsyncPacketSocket* socket, in Create() 48 static UDPPort* Create(rtc::Thread* thread, in Create() 49 rtc::PacketSocketFactory* factory, in Create() 50 rtc::Network* network, in Create() 51 const rtc::IPAddress& ip, in Create() 70 rtc::SocketAddress GetLocalAddress() const { in GetLocalAddress() [all …]
|
D | turnport.h | 24 namespace rtc { 43 static TurnPort* Create(rtc::Thread* thread, in Create() 44 rtc::PacketSocketFactory* factory, in Create() 45 rtc::Network* network, in Create() 46 rtc::AsyncPacketSocket* socket, in Create() 57 static TurnPort* Create(rtc::Thread* thread, in Create() 58 rtc::PacketSocketFactory* factory, in Create() 59 rtc::Network* network, in Create() 60 const rtc::IPAddress& ip, in Create() 78 rtc::SocketAddress GetLocalAddress() const; [all …]
|
D | tcpport.h | 31 static TCPPort* Create(rtc::Thread* thread, in Create() 32 rtc::PacketSocketFactory* factory, in Create() 33 rtc::Network* network, in Create() 34 const rtc::IPAddress& ip, in Create() 55 int GetOption(rtc::Socket::Option opt, int* value) override; 56 int SetOption(rtc::Socket::Option opt, int value) override; 63 TCPPort(rtc::Thread* thread, 64 rtc::PacketSocketFactory* factory, 65 rtc::Network* network, 66 const rtc::IPAddress& ip, [all …]
|
D | relayserver.h | 32 class RelayServer : public rtc::MessageHandler, 36 explicit RelayServer(rtc::Thread* thread); 39 rtc::Thread* thread() { return thread_; } in thread() 47 void AddInternalSocket(rtc::AsyncPacketSocket* socket); 48 void RemoveInternalSocket(rtc::AsyncPacketSocket* socket); 53 void AddExternalSocket(rtc::AsyncPacketSocket* socket); 54 void RemoveExternalSocket(rtc::AsyncPacketSocket* socket); 59 void AddInternalServerSocket(rtc::AsyncSocket* socket, 63 void RemoveInternalServerSocket(rtc::AsyncSocket* socket); 67 rtc::SocketAddressPair GetConnection(int connection) const; [all …]
|
D | testrelayserver.h | 26 TestRelayServer(rtc::Thread* thread, in TestRelayServer() 27 const rtc::SocketAddress& udp_int_addr, in TestRelayServer() 28 const rtc::SocketAddress& udp_ext_addr, in TestRelayServer() 29 const rtc::SocketAddress& tcp_int_addr, in TestRelayServer() 30 const rtc::SocketAddress& tcp_ext_addr, in TestRelayServer() 31 const rtc::SocketAddress& ssl_int_addr, in TestRelayServer() 32 const rtc::SocketAddress& ssl_ext_addr) in TestRelayServer() 34 server_.AddInternalSocket(rtc::AsyncUDPSocket::Create( in TestRelayServer() 36 server_.AddExternalSocket(rtc::AsyncUDPSocket::Create( in TestRelayServer() 47 rtc::SocketAddressPair GetConnection(int connection) const { in GetConnection() [all …]
|
D | dtlstransportchannel_unittest.cc | 26 if (!(rtc::SSLStreamAdapter::feature())) { \ 51 ssl_max_version_(rtc::SSL_PROTOCOL_DTLS_12), in DtlsTestClient() 55 void CreateCertificate(rtc::KeyType key_type) { in CreateCertificate() 57 rtc::RTCCertificate::Create(rtc::scoped_ptr<rtc::SSLIdentity>( in CreateCertificate() 58 rtc::SSLIdentity::Generate(name_, key_type))); in CreateCertificate() 60 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate() { in certificate() 67 void SetupMaxProtocolVersion(rtc::SSLProtocolVersion version) { in SetupMaxProtocolVersion() 119 void Negotiate(const rtc::scoped_refptr<rtc::RTCCertificate>& local_cert, in Negotiate() 120 const rtc::scoped_refptr<rtc::RTCCertificate>& remote_cert, in Negotiate() 125 rtc::scoped_ptr<rtc::SSLFingerprint> local_fingerprint; in Negotiate() [all …]
|
D | turnserver.h | 25 namespace rtc { 44 TurnServerConnection(const rtc::SocketAddress& src, 46 rtc::AsyncPacketSocket* socket); 47 const rtc::SocketAddress& src() const { return src_; } in src() 48 rtc::AsyncPacketSocket* socket() { return socket_; } in socket() 54 rtc::SocketAddress src_; 55 rtc::SocketAddress dst_; 57 rtc::AsyncPacketSocket* socket_; 65 class TurnServerAllocation : public rtc::MessageHandler, 69 rtc::Thread* thread, [all …]
|
D | relayport_unittest.cc | 25 using rtc::SocketAddress; 47 : main_(rtc::Thread::Current()), in RelayPortTest() 48 physical_socket_server_(new rtc::PhysicalSocketServer), in RelayPortTest() 49 virtual_socket_server_(new rtc::VirtualSocketServer( in RelayPortTest() 52 network_("unittest", "unittest", rtc::IPAddress(INADDR_ANY), 32), in RelayPortTest() 53 socket_factory_(rtc::Thread::Current()), in RelayPortTest() 54 username_(rtc::CreateRandomString(16)), in RelayPortTest() 55 password_(rtc::CreateRandomString(16)), in RelayPortTest() 63 void OnReadPacket(rtc::AsyncPacketSocket* socket, in OnReadPacket() 65 const rtc::SocketAddress& remote_addr, in OnReadPacket() [all …]
|
D | stunport.cc | 37 const rtc::SocketAddress& addr, in StunBindingRequest() 40 start_time_ = rtc::Time(); in StunBindingRequest() 46 const rtc::SocketAddress& server_addr() const { return server_addr_; } in server_addr() 61 rtc::SocketAddress addr(addr_attr->ipaddr(), addr_attr->port()); in OnResponse() 67 if (rtc::Time() <= deadline_) { in OnResponse() 87 uint32_t now = rtc::Time(); in OnErrorResponse() 88 if (now <= deadline_ && rtc::TimeDiff(now, start_time_) <= RETRY_TIMEOUT) { in OnErrorResponse() 105 const rtc::SocketAddress server_addr_; 111 rtc::PacketSocketFactory* factory) in AddressResolver() 125 const rtc::SocketAddress& address) { in Resolve() [all …]
|
D | faketransportcontroller.h | 35 struct PacketMessageData : public rtc::MessageData { 37 rtc::Buffer packet; 46 public rtc::MessageHandler { 62 const rtc::SSLFingerprint& dtls_fingerprint() const { in dtls_fingerprint() 105 dtls_fingerprint_ = rtc::SSLFingerprint(alg, digest, digest_len); in SetRemoteFingerprint() 108 bool SetSslRole(rtc::SSLRole role) override { in SetSslRole() 112 bool GetSslRole(rtc::SSLRole* role) const override { in GetSslRole() 197 const rtc::PacketOptions& options, in SendPacket() 209 rtc::Thread::Current()->Post(this, 0, packet); in SendPacket() 211 rtc::Thread::Current()->Send(this, 0, packet); in SendPacket() [all …]
|
D | tcpport.cc | 75 TCPPort::TCPPort(rtc::Thread* thread, in TCPPort() 76 rtc::PacketSocketFactory* factory, in TCPPort() 77 rtc::Network* network, in TCPPort() 78 const rtc::IPAddress& ip, in TCPPort() 106 rtc::SocketAddress(ip(), 0), min_port(), max_port(), in Init() 158 if (rtc::AsyncPacketSocket* socket = in CreateConnection() 176 if (socket_->GetState() == rtc::AsyncPacketSocket::STATE_BOUND || in PrepareAddress() 177 socket_->GetState() == rtc::AsyncPacketSocket::STATE_CLOSED) in PrepareAddress() 179 rtc::SocketAddress(), TCP_PROTOCOL_NAME, "", in PrepareAddress() 188 AddAddress(rtc::SocketAddress(ip(), DISCARD_PORT), in PrepareAddress() [all …]
|
/external/webrtc/talk/app/webrtc/ |
D | dtlsidentitystore.h | 52 class DtlsIdentityRequestObserver : public rtc::RefCountInterface { 60 virtual void OnSuccess(rtc::scoped_ptr<rtc::SSLIdentity> identity) = 0; 79 rtc::KeyType key_type, in RequestIdentity() 80 const rtc::scoped_refptr<DtlsIdentityRequestObserver>& observer) { in RequestIdentity() 82 RequestIdentity(rtc::KeyParams(key_type), observer); in RequestIdentity() 89 rtc::KeyParams key_params, in RequestIdentity() 90 const rtc::scoped_refptr<DtlsIdentityRequestObserver>& observer) { in RequestIdentity() 99 public rtc::MessageHandler { 103 DtlsIdentityStoreImpl(rtc::Thread* signaling_thread, 104 rtc::Thread* worker_thread); [all …]
|
D | peerconnectionfactory.h | 42 namespace rtc { 49 typedef rtc::RefCountedObject<DtlsIdentityStoreImpl> 58 rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( 61 rtc::scoped_ptr<cricket::PortAllocator> allocator, 62 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, 67 rtc::scoped_refptr<MediaStreamInterface> 70 rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource( 73 rtc::scoped_refptr<VideoSourceInterface> CreateVideoSource( 77 rtc::scoped_refptr<VideoTrackInterface> 81 rtc::scoped_refptr<AudioTrackInterface> [all …]
|
D | peerconnectionfactory.cc | 59 const rtc::scoped_refptr<RefCountedDtlsIdentityStore>& store) in DtlsIdentityStoreWrapper() 65 rtc::KeyType key_type, in RequestIdentity() 66 const rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>& in RequestIdentity() 72 rtc::scoped_refptr<RefCountedDtlsIdentityStore> store_; 77 rtc::scoped_refptr<PeerConnectionFactoryInterface> 79 rtc::scoped_refptr<PeerConnectionFactory> pc_factory( in CreatePeerConnectionFactory() 80 new rtc::RefCountedObject<PeerConnectionFactory>()); in CreatePeerConnectionFactory() 97 rtc::scoped_refptr<PeerConnectionFactoryInterface> 99 rtc::Thread* worker_thread, in CreatePeerConnectionFactory() 100 rtc::Thread* signaling_thread, in CreatePeerConnectionFactory() [all …]
|
/external/webrtc/talk/media/base/ |
D | fakenetworkinterface.h | 48 public rtc::MessageHandler { 51 : thread_(rtc::Thread::Current()), in FakeNetworkInterface() 56 dscp_(rtc::DSCP_NO_CHANGE) { in FakeNetworkInterface() 65 rtc::CritScope cs(&crit_); in SetConferenceMode() 71 rtc::CritScope cs(&crit_); in NumRtpBytes() 80 rtc::CritScope cs(&crit_); in NumRtpBytes() 87 rtc::CritScope cs(&crit_); in NumRtpPackets() 92 rtc::CritScope cs(&crit_); in NumRtpPackets() 99 rtc::CritScope cs(&crit_); in NumSentSsrcs() 104 const rtc::Buffer* GetRtpPacket(int index) { in GetRtpPacket() [all …]
|
D | rtpdump.cc | 56 void RtpDumpFileHeader::WriteToByteBuffer(rtc::ByteBuffer* buf) { in WriteToByteBuffer() 114 rtc::StreamResult RtpDumpReader::ReadPacket(RtpDumpPacket* packet) { in ReadPacket() 115 if (!packet) return rtc::SR_ERROR; in ReadPacket() 117 rtc::StreamResult res = rtc::SR_SUCCESS; in ReadPacket() 121 if (res != rtc::SR_SUCCESS) { in ReadPacket() 130 if (res != rtc::SR_SUCCESS) { in ReadPacket() 133 rtc::ByteBuffer buf(header, sizeof(header)); in ReadPacket() 153 if (res == rtc::SR_SUCCESS && in ReadPacket() 156 rtc::SetBE32(&packet->data[kRtpSsrcOffset], ssrc_override_); in ReadPacket() 162 rtc::StreamResult RtpDumpReader::ReadFileHeader() { in ReadFileHeader() [all …]
|
/external/webrtc/webrtc/p2p/stunprober/ |
D | stunprober_unittest.cc | 31 const rtc::SocketAddress kLocalAddr("192.168.0.1", 0); 32 const rtc::SocketAddress kStunAddr1("1.1.1.1", 3478); 33 const rtc::SocketAddress kStunAddr2("1.1.1.2", 3478); 34 const rtc::SocketAddress kFailedStunAddr("1.1.1.3", 3478); 35 const rtc::SocketAddress kStunMappedAddr("77.77.77.77", 0); 42 : main_(rtc::Thread::Current()), in StunProberTest() 43 pss_(new rtc::PhysicalSocketServer), in StunProberTest() 44 ss_(new rtc::VirtualSocketServer(pss_.get())), in StunProberTest() 47 stun_server_1_(cricket::TestStunServer::Create(rtc::Thread::Current(), in StunProberTest() 49 stun_server_2_(cricket::TestStunServer::Create(rtc::Thread::Current(), in StunProberTest() [all …]
|
D | stunprober.cc | 52 rtc::SocketAddress srflx_addr; 54 rtc::IPAddress server_addr; 64 rtc::AsyncPacketSocket* socket, 65 const std::vector<rtc::SocketAddress>& server_ips); 73 void OnStunResponseReceived(rtc::AsyncPacketSocket* socket, 76 const rtc::SocketAddress& addr, 77 const rtc::PacketTime& time); 87 Request* GetRequestByAddress(const rtc::IPAddress& ip); 92 rtc::scoped_ptr<rtc::AsyncPacketSocket> socket_; 95 rtc::SocketAddress addr_; [all …]
|
/external/webrtc/talk/app/webrtc/test/ |
D | fakedtlsidentitystore.h | 101 public rtc::MessageHandler { 103 typedef rtc::TypedMessageData<rtc::scoped_refptr< 116 rtc::KeyType key_type, in RequestIdentity() 117 const rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>& in RequestIdentity() 120 RTC_DCHECK(key_type == rtc::KT_RSA || should_fail_); in RequestIdentity() 122 rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>(observer)); in RequestIdentity() 123 rtc::Thread::Current()->Post( in RequestIdentity() 127 static rtc::scoped_refptr<rtc::RTCCertificate> GenerateCertificate() { in GenerateCertificate() 130 rtc::SSLIdentity::PemToDer("CERTIFICATE", kKeysAndCerts[0].cert_pem, &cert); in GenerateCertificate() 131 rtc::SSLIdentity::PemToDer("RSA PRIVATE KEY", in GenerateCertificate() [all …]
|
/external/webrtc/webrtc/p2p/client/ |
D | basicportallocator.h | 27 BasicPortAllocator(rtc::NetworkManager* network_manager, 28 rtc::PacketSocketFactory* socket_factory); 29 explicit BasicPortAllocator(rtc::NetworkManager* network_manager); 30 BasicPortAllocator(rtc::NetworkManager* network_manager, 31 rtc::PacketSocketFactory* socket_factory, 33 BasicPortAllocator(rtc::NetworkManager* network_manager, 35 const rtc::SocketAddress& relay_server_udp, 36 const rtc::SocketAddress& relay_server_tcp, 37 const rtc::SocketAddress& relay_server_ssl); 57 rtc::NetworkManager* network_manager() { return network_manager_; } in network_manager() [all …]
|