Searched defs:FakeSocket (Results 1 - 7 of 7) sorted by relevance

/external/chromium_org/content/browser/renderer_host/p2p/
H A Dsocket_host_test_utils.h31 class FakeSocket : public net::StreamSocket { class in inherits:net::StreamSocket
33 FakeSocket(std::string* written_data);
34 virtual ~FakeSocket();
H A Dsocket_host_test_utils.cc21 FakeSocket::FakeSocket(std::string* written_data) function in class:FakeSocket
29 FakeSocket::~FakeSocket() { }
31 void FakeSocket::AppendInputData(const char* data, int data_size) {
48 void FakeSocket::SetPeerAddress(const net::IPEndPoint& peer_address) {
52 void FakeSocket::SetLocalAddress(const net::IPEndPoint& local_address) {
56 int FakeSocket::Read(net::IOBuffer* buf, int buf_len,
74 int FakeSocket::Write(net::IOBuffer* buf, int buf_len,
82 &FakeSocket
[all...]
/external/chromium_org/jingle/glue/
H A Dpseudotcp_adapter_unittest.cc23 class FakeSocket;
75 class FakeSocket : public net::Socket { class in namespace:jingle_glue::__anon7987
77 FakeSocket() function in class:jingle_glue::__anon7987::FakeSocket
81 virtual ~FakeSocket() { }
99 void Connect(FakeSocket* peer_socket) {
136 base::Bind(&FakeSocket::AppendInputPacket,
161 FakeSocket* peer_socket_;
304 host_socket_ = new FakeSocket();
305 client_socket_ = new FakeSocket();
314 FakeSocket* host_socket
[all...]
/external/chromium_org/net/socket/
H A Dssl_server_socket_unittest.cc8 // 1. FakeSocket
156 class FakeSocket : public StreamSocket { class in namespace:net::__anon8937
158 FakeSocket(FakeDataChannel* incoming_channel, function in class:net::__anon8937::FakeSocket
164 virtual ~FakeSocket() {
251 DISALLOW_COPY_AND_ASSIGN(FakeSocket);
261 FakeSocket client(&channel_1, &channel_2);
262 FakeSocket server(&channel_2, &channel_1);
309 scoped_ptr<StreamSocket>(new FakeSocket(&channel_1_, &channel_2_)));
311 new FakeSocket(&channel_2_, &channel_1_));
/external/chromium_org/remoting/protocol/
H A Dfake_session.cc20 FakeSocket::FakeSocket() function in class:remoting::protocol::FakeSocket
33 FakeSocket::~FakeSocket() {
37 void FakeSocket::AppendInputData(const std::vector<char>& data) {
54 void FakeSocket::PairWith(FakeSocket* peer_socket) {
60 int FakeSocket::Read(net::IOBuffer* buf, int buf_len,
85 int FakeSocket::Write(net::IOBuffer* buf, int buf_len,
95 &FakeSocket
[all...]
H A Dfake_session.h29 // FakeSocket implement net::Socket interface for FakeConnection. All data
30 // written to FakeSocket is stored in a buffer returned by written_data().
39 class FakeSocket : public net::StreamSocket { class in namespace:remoting::protocol
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);
109 // FakeUdpSocket is similar to FakeSocket bu
[all...]
/external/chromium_org/sync/tools/testserver/
H A Dxmppserver_test.py209 class FakeSocket(object): class in inherits:object
241 self.fake_socket = FakeSocket()
345 fake_socket = FakeSocket()

Completed in 181 milliseconds