Lines Matching refs:FakeSocket
20 FakeSocket::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::DoAsyncWrite, weak_factory_.GetWeakPtr(),
111 void FakeSocket::DoAsyncWrite(scoped_refptr<net::IOBuffer> buf, int buf_len,
126 void FakeSocket::DoWrite(net::IOBuffer* buf, int buf_len) {
133 base::Bind(&FakeSocket::AppendInputData,
139 bool FakeSocket::SetReceiveBufferSize(int32 size) {
143 bool FakeSocket::SetSendBufferSize(int32 size) {
148 int FakeSocket::Connect(const net::CompletionCallback& callback) {
153 void FakeSocket::Disconnect() {
157 bool FakeSocket::IsConnected() const {
162 bool FakeSocket::IsConnectedAndIdle() const {
167 int FakeSocket::GetPeerAddress(net::IPEndPoint* address) const {
173 int FakeSocket::GetLocalAddress(net::IPEndPoint* address) const {
178 const net::BoundNetLog& FakeSocket::NetLog() const {
183 void FakeSocket::SetSubresourceSpeculation() {
187 void FakeSocket::SetOmniboxSpeculation() {
191 bool FakeSocket::WasEverUsed() const {
196 bool FakeSocket::UsingTCPFastOpen() const {
201 bool FakeSocket::WasNpnNegotiated() const {
205 net::NextProto FakeSocket::GetNegotiatedProtocol() const {
210 bool FakeSocket::GetSSLInfo(net::SSLInfo* ssl_info) {
289 FakeSocket* FakeSession::GetStreamChannel(const std::string& name) {
336 scoped_ptr<FakeSocket> channel;
340 channel.reset(new FakeSocket());