Lines Matching refs:rtc
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)) {
48 socks_.reset(new rtc::SocksProxyServer(
50 https_.reset(new rtc::HttpListenServer());
57 rtc::SocketServer* ss() { return ss_.get(); }
59 rtc::ProxyType DetectProxyType(const SocketAddress& address) {
60 rtc::ProxyType type;
70 rtc::scoped_ptr<rtc::SocketServer> ss_;
71 rtc::scoped_ptr<rtc::SocksProxyServer> socks_;
73 rtc::scoped_ptr<rtc::HttpListenServer> https_;
78 rtc::AsyncSocket* socket =
80 rtc::AsyncSocksProxySocket* proxy_socket =
81 new rtc::AsyncSocksProxySocket(socket, kSocksProxyIntAddr,
82 "", rtc::CryptString());
85 rtc::TestEchoServer server(Thread::Current(),
88 rtc::AsyncTCPSocket* packet_socket = rtc::AsyncTCPSocket::Create(
91 rtc::TestClient client(packet_socket);
122 EXPECT_EQ(rtc::PROXY_SOCKS5, DetectProxyType(kSocksProxyIntAddr));
128 EXPECT_EQ(rtc::PROXY_HTTPS, DetectProxyType(kHttpsProxyIntAddr));
134 EXPECT_EQ(rtc::PROXY_UNKNOWN, DetectProxyType(kBogusProxyIntAddr));