Home
last modified time | relevance | path

Searched refs:FakeSocket (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/content/browser/renderer_host/p2p/
Dsocket_host_test_utils.cc21 FakeSocket::FakeSocket(std::string* written_data) in FakeSocket() function in FakeSocket
29 FakeSocket::~FakeSocket() { } in ~FakeSocket()
31 void FakeSocket::AppendInputData(const char* data, int data_size) { in AppendInputData()
48 void FakeSocket::SetPeerAddress(const net::IPEndPoint& peer_address) { in SetPeerAddress()
52 void FakeSocket::SetLocalAddress(const net::IPEndPoint& local_address) { in SetLocalAddress()
56 int FakeSocket::Read(net::IOBuffer* buf, int buf_len, in Read()
74 int FakeSocket::Write(net::IOBuffer* buf, int buf_len, in Write()
82 &FakeSocket::DoAsyncWrite, base::Unretained(this), in Write()
95 void FakeSocket::DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len, in DoAsyncWrite()
106 int FakeSocket::SetReceiveBufferSize(int32 size) { in SetReceiveBufferSize()
[all …]
Dsocket_host_tcp_server_unittest.cc123 FakeSocket* incoming = new FakeSocket(NULL); in TEST_F()
143 FakeSocket* incoming1 = new FakeSocket(NULL); in TEST_F()
147 FakeSocket* incoming2 = new FakeSocket(NULL); in TEST_F()
Dsocket_host_test_utils.h31 class FakeSocket : public net::StreamSocket {
33 FakeSocket(std::string* written_data);
34 virtual ~FakeSocket();
Dsocket_host_tcp_unittest.cc41 socket_ = new FakeSocket(&sent_data_); in SetUp()
63 FakeSocket* socket_; // Owned by |socket_host_|.
/external/chromium_org/remoting/protocol/
Dfake_session.cc20 FakeSocket::FakeSocket() in FakeSocket() function in remoting::protocol::FakeSocket
33 FakeSocket::~FakeSocket() { in ~FakeSocket()
37 void FakeSocket::AppendInputData(const std::vector<char>& data) { in AppendInputData()
54 void FakeSocket::PairWith(FakeSocket* peer_socket) { in PairWith()
60 int FakeSocket::Read(net::IOBuffer* buf, int buf_len, in Read()
85 int FakeSocket::Write(net::IOBuffer* buf, int buf_len, in Write()
95 &FakeSocket::DoAsyncWrite, weak_factory_.GetWeakPtr(), in Write()
111 void FakeSocket::DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len, in DoAsyncWrite()
126 void FakeSocket::DoWrite(net::IOBuffer* buf, int buf_len) { in DoWrite()
133 base::Bind(&FakeSocket::AppendInputData, in DoWrite()
[all …]
Dfake_session.h39 class FakeSocket : public net::StreamSocket {
41 FakeSocket();
42 virtual ~FakeSocket();
51 void PairWith(FakeSocket* peer_socket);
95 base::WeakPtr<FakeSocket> peer_socket_;
104 base::WeakPtrFactory<FakeSocket> weak_factory_;
106 DISALLOW_COPY_AND_ASSIGN(FakeSocket);
166 FakeSocket* GetStreamChannel(const std::string& name);
204 std::map<std::string, FakeSocket*> stream_channels_;
Dauthenticator_test_base.h28 class FakeSocket; variable
64 scoped_ptr<FakeSocket> client_fake_socket_;
65 scoped_ptr<FakeSocket> host_fake_socket_;
Dssl_hmac_channel_authenticator_unittest.cc73 client_fake_socket_.reset(new FakeSocket()); in RunChannelAuth()
74 host_fake_socket_.reset(new FakeSocket()); in RunChannelAuth()
128 scoped_ptr<FakeSocket> client_fake_socket_;
129 scoped_ptr<FakeSocket> host_fake_socket_;
Dauthenticator_test_base.cc113 client_fake_socket_.reset(new FakeSocket()); in RunChannelAuth()
114 host_fake_socket_.reset(new FakeSocket()); in RunChannelAuth()
Dbuffered_socket_writer_unittest.cc51 socket_.reset(new FakeSocket()); in SetUp()
101 scoped_ptr<FakeSocket> socket_;
Dchannel_multiplexer_unittest.cc83 FakeSocket* host_socket = in ConnectSockets()
85 FakeSocket* client_socket = in ConnectSockets()
Dmessage_reader_unittest.cc104 FakeSocket socket_;
/external/chromium_org/jingle/glue/
Dpseudotcp_adapter_unittest.cc23 class FakeSocket;
75 class FakeSocket : public net::Socket { class
77 FakeSocket() in FakeSocket() function in jingle_glue::__anond862723d0211::FakeSocket
81 virtual ~FakeSocket() { } in ~FakeSocket()
99 void Connect(FakeSocket* peer_socket) { in Connect()
136 base::Bind(&FakeSocket::AppendInputPacket, in Write()
161 FakeSocket* peer_socket_;
304 host_socket_ = new FakeSocket(); in SetUp()
305 client_socket_ = new FakeSocket(); in SetUp()
314 FakeSocket* host_socket_;
[all …]
/external/chromium_org/net/socket/
Dssl_server_socket_unittest.cc156 class FakeSocket : public StreamSocket { class
158 FakeSocket(FakeDataChannel* incoming_channel, in FakeSocket() function in net::__anonf609d9600111::FakeSocket
164 virtual ~FakeSocket() { in ~FakeSocket()
251 DISALLOW_COPY_AND_ASSIGN(FakeSocket);
261 FakeSocket client(&channel_1, &channel_2); in TEST()
262 FakeSocket server(&channel_2, &channel_1); in TEST()
309 scoped_ptr<StreamSocket>(new FakeSocket(&channel_1_, &channel_2_))); in Initialize()
311 new FakeSocket(&channel_2_, &channel_1_)); in Initialize()
/external/chromium_org/sync/tools/testserver/
Dxmppserver_test.py209 class FakeSocket(object): class
241 self.fake_socket = FakeSocket()
345 fake_socket = FakeSocket()
/external/chromium_org/native_client_sdk/src/build_tools/sdk_tools/third_party/fancy_urllib/
D__init__.py163 self.sock = httplib.FakeSocket(self.sock, ssl)
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/
D__init__.py68 return httplib.FakeSocket(sock, ssl_sock)