Home | History | Annotate | Download | only in socket

Lines Matching refs:MockRead

42   // If the |result| member of a MockRead is
43 // ERR_TEST_PEER_CLOSE_AFTER_NEXT_MOCK_READ, that MockRead is just a
45 // MockRead. The other members of that MockRead are ignored.
76 // MockRead and MockWrite shares the same interface and members, but we'd like
78 // interchangably. To do this, a struct template is defined, and MockRead and
83 // |data| in MockRead and MockWrite has different meanings: |data| in MockRead
184 typedef MockReadWrite<MOCK_READ> MockRead;
203 // If the |MockRead.result| is ERR_IO_PENDING, it informs the caller
206 virtual MockRead GetNextRead() = 0;
233 virtual void OnReadComplete(const MockRead& data) = 0;
242 StaticSocketDataProvider(MockRead* reads,
249 const MockRead& PeekRead() const;
252 const MockRead& PeekRead(size_t index) const;
265 virtual MockRead GetNextRead() OVERRIDE;
270 MockRead* reads_;
295 virtual MockRead GetNextRead() OVERRIDE;
306 std::deque<MockRead> reads_;
350 // a MockRead to complete.
351 // |reads| the list of MockRead completions.
353 // Note: For stream sockets, the MockRead list must end with a EOF, e.g., a
354 // MockRead(true, 0, 0);
356 MockRead* reads,
362 // |reads| the list of MockRead completions.
364 // a MockRead to complete.
366 // Note: For stream sockets, the MockRead list must end with a EOF, e.g., a
367 // MockRead(true, 0, 0);
370 MockRead* reads,
379 virtual MockRead GetNextRead() OVERRIDE;
395 // ERR_IO_PENDING (that way we don't have to explicitly add a MockRead just to
399 // number in the MockRead's sequence number. When that MockRead is reached,
406 // |reads| the list of MockRead completions.
409 // Note: For stream sockets, the MockRead list must end with a EOF, e.g., a
410 // MockRead(true, 0, 0);
411 OrderedSocketData(MockRead* reads,
418 // |reads| the list of MockRead completions.
421 // Note: For stream sockets, the MockRead list must end with a EOF, e.g., a
422 // MockRead(true, 0, 0);
424 MockRead* reads,
433 virtual MockRead GetNextRead() OVERRIDE;
460 // when the corresponding MockRead or MockWrite is marked !async).
482 // MockRead reads[] = {
483 // MockRead(false, "first read", length, 0) // sync
484 // MockRead(true, "second read", length, 2) // async
533 // |reads| the list of MockRead completions.
535 DeterministicSocketData(MockRead* reads,
554 MockRead& current_read() { return current_read_; }
563 virtual MockRead GetNextRead() OVERRIDE;
578 void VerifyCorrectSequenceNumbers(MockRead* reads,
584 MockRead current_read_;
772 virtual void OnReadComplete(const MockRead& data) OVERRIDE;
782 MockRead read_data_;
833 MockRead read_data_;
882 virtual void OnReadComplete(const MockRead& data) OVERRIDE;
932 virtual void OnReadComplete(const MockRead& data) OVERRIDE;
979 virtual void OnReadComplete(const MockRead& data) OVERRIDE;
1053 virtual void OnReadComplete(const MockRead& data) OVERRIDE;
1067 MockRead read_data_;