/external/chromium/net/socket/ |
transport_client_socket_unittest.cc | 90 scoped_ptr<ClientSocket> sock_; member in class:net::__anon3812::TransportClientSocketTest 126 sock_.reset( 139 rv = sock_->Read(buf, buf_len, callback); 160 rv = sock_->Write(request_buffer, arraysize(request_text) - 1, &callback); 176 EXPECT_FALSE(sock_->IsConnected()); 178 int rv = sock_->Connect(&callback); 192 EXPECT_TRUE(sock_->IsConnected()); 197 sock_->Disconnect(); 198 EXPECT_FALSE(sock_->IsConnected()); 206 EXPECT_FALSE(sock_->IsConnected()) [all...] |
deterministic_socket_data_unittest.cc | 46 ClientSocket* sock_; member in class:net::DeterministicSocketDataTest 67 sock_(NULL), 104 sock_ = connection_.socket(); 120 EXPECT_TRUE(sock_->IsConnected()); 131 ASSERT_EQ(rv, sock_->Read(read_buf_, len, &read_callback_)); 145 ASSERT_EQ(len, sock_->Write(buf, len, &write_callback_)); 154 EXPECT_TRUE(sock_->IsConnected()); 166 ASSERT_EQ(rv, sock_->Write(buf, len, &write_callback_));
|
/external/chromium/net/spdy/ |
spdy_proxy_client_socket_unittest.cc | 102 scoped_ptr<SpdyProxyClientSocket> sock_; member in class:net::SpdyProxyClientSocketTest 128 : sock_(NULL), 200 sock_.reset( 215 ASSERT_EQ(ERR_IO_PENDING, sock_->Connect(&read_callback_)); 221 ASSERT_EQ(ERR_IO_PENDING, sock_->Connect(&read_callback_)); 227 const HttpResponseInfo* response = sock_->GetConnectResponseInfo(); 236 ASSERT_EQ(len, sock_->Read(buf, len, NULL)); 238 ASSERT_TRUE(sock_->IsConnected()); 246 ASSERT_EQ(ERR_IO_PENDING, sock_->Read(buf, len, &read_callback_)); 247 EXPECT_TRUE(sock_->IsConnected()) [all...] |