Lines Matching refs:MockRead
106 void DumpMockRead(const MockRead& r) {
112 const char* stop = (r.sequence_number & MockRead::STOPLOOP) ? " (STOP)" : "";
113 DVLOG(1) << "Stage: " << (r.sequence_number & ~MockRead::STOPLOOP) << stop
128 StaticSocketDataProvider::StaticSocketDataProvider(MockRead* reads,
142 const MockRead& StaticSocketDataProvider::PeekRead() const {
152 const MockRead& StaticSocketDataProvider::PeekRead(size_t index) const {
162 MockRead StaticSocketDataProvider::GetNextRead() {
212 MockRead DynamicSocketDataProvider::GetNextRead() {
214 return MockRead(false, ERR_UNEXPECTED);
215 MockRead result = reads_.front();
235 reads_.push_back(MockRead(true, data, length));
249 int write_delay, MockRead* reads, size_t reads_count,
258 const MockConnect& connect, int write_delay, MockRead* reads,
275 MockRead DelayedSocketData::GetNextRead() {
277 return MockRead(true, ERR_IO_PENDING);
302 MockRead* reads, size_t reads_count, MockWrite* writes, size_t writes_count)
310 MockRead* reads, size_t reads_count,
323 const MockRead& next_read = StaticSocketDataProvider::PeekRead();
324 if ((next_read.sequence_number & ~MockRead::STOPLOOP) >
341 MockRead OrderedSocketData::GetNextRead() {
344 const MockRead& next_read = StaticSocketDataProvider::PeekRead();
345 if (next_read.sequence_number & MockRead::STOPLOOP)
347 if ((next_read.sequence_number & ~MockRead::STOPLOOP) <=
356 MockRead result = MockRead(true, ERR_IO_PENDING);
399 DeterministicSocketData::DeterministicSocketData(MockRead* reads,
452 MockRead DeterministicSocketData::GetNextRead() {
459 return MockRead(false, ERR_UNEXPECTED);
466 MockRead result = MockRead(false, ERR_IO_PENDING);
471 result = MockRead(false, ERR_UNEXPECTED);
726 // This MockRead is just a marker to instruct us to set
803 void MockTCPClientSocket::OnReadComplete(const MockRead& data) {
942 // The buffer should always be big enough to contain all the MockRead data. To
993 void DeterministicMockTCPClientSocket::OnReadComplete(const MockRead& data) {}
1120 void MockSSLClientSocket::OnReadComplete(const MockRead& data) {