Lines Matching defs:producer
52 // Producer whose produced buffer will enqueue yet another buffer into the
69 scoped_ptr<SpdyBufferProducer> producer(
74 MEDIUM, RST_STREAM, producer.Pass(), base::WeakPtr<SpdyStream>());
81 // Produces a frame with the given producer and returns a copy of its
83 std::string ProducerToString(scoped_ptr<SpdyBufferProducer> producer) {
84 scoped_ptr<SpdyBuffer> buffer = producer->ProduceBuffer();
88 // Produces a frame with the given producer and returns a copy of its
90 int ProducerToInt(scoped_ptr<SpdyBufferProducer> producer) {
92 EXPECT_TRUE(base::StringToInt(ProducerToString(producer.Pass()), &i));
293 scoped_ptr<SpdyBufferProducer> producer;
296 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &stream));
298 EXPECT_EQ(string(kOriginal), producer->ProduceBuffer()->GetRemainingData());
300 // |producer| was destroyed, and a buffer is re-queued.
304 scoped_ptr<SpdyBufferProducer> producer;
307 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &stream));
308 EXPECT_EQ(string(kRequeued), producer->ProduceBuffer()->GetRemainingData());
323 scoped_ptr<SpdyBufferProducer> producer;
326 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &stream));
327 EXPECT_EQ(string(kRequeued), producer->ProduceBuffer()->GetRemainingData());
345 scoped_ptr<SpdyBufferProducer> producer;
348 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &weak_stream));
349 EXPECT_EQ(string(kRequeued), producer->ProduceBuffer()->GetRemainingData());
367 scoped_ptr<SpdyBufferProducer> producer;
370 EXPECT_TRUE(queue.Dequeue(&frame_type, &producer, &weak_stream));
371 EXPECT_EQ(string(kRequeued), producer->ProduceBuffer()->GetRemainingData());