Home
last modified time | relevance | path

Searched refs:reads_ (Results 1 – 3 of 3) sorted by relevance

/external/chromium/net/socket/
Dsocks_client_socket_pool_unittest.cc37 reads_.reset(new MockRead[3]); in SOCKS5MockData()
38 reads_[0] = MockRead(async, kSOCKS5GreetResponse, in SOCKS5MockData()
40 reads_[1] = MockRead(async, kSOCKS5OkResponse, kSOCKS5OkResponseLength); in SOCKS5MockData()
41 reads_[2] = MockRead(async, 0); in SOCKS5MockData()
43 data_.reset(new StaticSocketDataProvider(reads_.get(), 3, in SOCKS5MockData()
52 scoped_array<MockWrite> reads_; member in net::__anon8f3f952b0111::SOCKSClientSocketPoolTest::SOCKS5MockData
Dsocket_test_util.cc120 : reads_(NULL), in StaticSocketDataProvider()
132 : reads_(reads), in StaticSocketDataProvider()
144 return reads_[read_index_]; in PeekRead()
154 return reads_[index]; in PeekRead()
164 reads_[read_index_].time_stamp = base::Time::Now(); in GetNextRead()
165 return reads_[read_index_++]; in GetNextRead()
213 if (reads_.empty()) in GetNextRead()
215 MockRead result = reads_.front(); in GetNextRead()
217 reads_.pop_front(); in GetNextRead()
220 reads_.front().data += result.data_len; in GetNextRead()
[all …]
Dsocket_test_util.h193 MockRead* reads_;
231 std::deque<MockRead> reads_;