Searched refs:sock_ (Results 1 – 3 of 3) sorted by relevance
/external/chromium/net/socket/ |
D | transport_client_socket_unittest.cc | 90 scoped_ptr<ClientSocket> sock_; member in net::__anone5d5cd1b0111::TransportClientSocketTest 126 sock_.reset( in SetUp() 139 rv = sock_->Read(buf, buf_len, callback); in DrainClientSocket() 160 rv = sock_->Write(request_buffer, arraysize(request_text) - 1, &callback); in SendClientRequest() 176 EXPECT_FALSE(sock_->IsConnected()); in TEST_P() 178 int rv = sock_->Connect(&callback); in TEST_P() 192 EXPECT_TRUE(sock_->IsConnected()); in TEST_P() 197 sock_->Disconnect(); in TEST_P() 198 EXPECT_FALSE(sock_->IsConnected()); in TEST_P() 206 EXPECT_FALSE(sock_->IsConnected()); in TEST_P() [all …]
|
D | deterministic_socket_data_unittest.cc | 46 ClientSocket* sock_; member in net::DeterministicSocketDataTest 67 sock_(NULL), in DeterministicSocketDataTest() 104 sock_ = connection_.socket(); in Initialize() 120 EXPECT_TRUE(sock_->IsConnected()); in AssertAsyncReadEquals() 131 ASSERT_EQ(rv, sock_->Read(read_buf_, len, &read_callback_)); in AssertReadReturns() 145 ASSERT_EQ(len, sock_->Write(buf, len, &write_callback_)); in AssertSyncWriteEquals() 154 EXPECT_TRUE(sock_->IsConnected()); in AssertAsyncWriteEquals() 166 ASSERT_EQ(rv, sock_->Write(buf, len, &write_callback_)); in AssertWriteReturns()
|
/external/chromium/net/spdy/ |
D | spdy_proxy_client_socket_unittest.cc | 102 scoped_ptr<SpdyProxyClientSocket> sock_; member in net::SpdyProxyClientSocketTest 128 : sock_(NULL), in SpdyProxyClientSocketTest() 200 sock_.reset( in Initialize() 215 ASSERT_EQ(ERR_IO_PENDING, sock_->Connect(&read_callback_)); in AssertConnectSucceeds() 221 ASSERT_EQ(ERR_IO_PENDING, sock_->Connect(&read_callback_)); in AssertConnectFails() 227 const HttpResponseInfo* response = sock_->GetConnectResponseInfo(); in AssertConnectionEstablished() 236 ASSERT_EQ(len, sock_->Read(buf, len, NULL)); in AssertSyncReadEquals() 238 ASSERT_TRUE(sock_->IsConnected()); in AssertSyncReadEquals() 246 ASSERT_EQ(ERR_IO_PENDING, sock_->Read(buf, len, &read_callback_)); in AssertAsyncReadEquals() 247 EXPECT_TRUE(sock_->IsConnected()); in AssertAsyncReadEquals() [all …]
|