Lines Matching defs:framer_
31 framer_.reset(new MessageFramer(buffer_.get()));
42 scoped_ptr<MessageFramer> framer_;
52 EXPECT_EQ(4u, framer_->BytesRequested());
53 EXPECT_EQ(NULL, framer_->Ingest(1, &message_length, &error).get());
55 EXPECT_EQ(3u, framer_->BytesRequested());
59 EXPECT_EQ(NULL, framer_->Ingest(3, &message_length, &error).get());
63 framer_->BytesRequested());
67 message = framer_->Ingest(framer_->BytesRequested(), &message_length, &error);
71 EXPECT_EQ(4u, framer_->BytesRequested());
95 EXPECT_EQ(4u, framer_->BytesRequested());
96 EXPECT_EQ(NULL, framer_->Ingest(4, &bytes_ingested, &error).get());
98 EXPECT_EQ(0u, framer_->BytesRequested());
102 EXPECT_EQ(0u, framer_->BytesRequested());
103 EXPECT_EQ(NULL, framer_->Ingest(4, &bytes_ingested, &error).get());
105 EXPECT_EQ(0u, framer_->BytesRequested());
124 EXPECT_EQ(4u, framer_->BytesRequested());
125 EXPECT_EQ(NULL, framer_->Ingest(4, &message_length, &error).get());
127 EXPECT_EQ(cast_message_str_.size() - 4, framer_->BytesRequested());
132 framer_->Ingest(framer_->BytesRequested(), &message_length, &error)