Lines Matching full:visitor
168 // Counters from the visitor callbacks.
498 TestSpdyVisitor visitor;
499 visitor.SimulateInFramer(input, sizeof(input));
501 EXPECT_EQ(0, visitor.error_count_);
502 EXPECT_EQ(2, visitor.syn_frame_count_);
503 EXPECT_EQ(0, visitor.syn_reply_frame_count_);
504 EXPECT_EQ(1, visitor.headers_frame_count_);
505 EXPECT_EQ(24, visitor.data_bytes_);
506 EXPECT_EQ(2, visitor.fin_frame_count_);
507 EXPECT_EQ(0, visitor.fin_flag_count_);
508 EXPECT_EQ(0, visitor.zero_length_data_frame_count_);
540 TestSpdyVisitor visitor;
541 visitor.SimulateInFramer(input, sizeof(input));
543 EXPECT_EQ(0, visitor.error_count_);
544 EXPECT_EQ(1, visitor.syn_frame_count_);
545 EXPECT_EQ(1, visitor.syn_reply_frame_count_);
546 EXPECT_EQ(0, visitor.headers_frame_count_);
547 EXPECT_EQ(16, visitor.data_bytes_);
548 EXPECT_EQ(0, visitor.fin_frame_count_);
549 EXPECT_EQ(0, visitor.fin_flag_count_);
550 EXPECT_EQ(1, visitor.zero_length_data_frame_count_);
572 TestSpdyVisitor visitor;
573 visitor.SimulateInFramer(input, sizeof(input));
575 EXPECT_EQ(0, visitor.error_count_);
576 EXPECT_EQ(1, visitor.syn_frame_count_);
577 EXPECT_EQ(1, visitor.syn_reply_frame_count_);
578 EXPECT_EQ(0, visitor.headers_frame_count_);
579 EXPECT_EQ(0, visitor.data_bytes_);
580 EXPECT_EQ(0, visitor.fin_frame_count_);
581 EXPECT_EQ(1, visitor.fin_flag_count_);
582 EXPECT_EQ(1, visitor.zero_length_data_frame_count_);
710 TestSpdyVisitor visitor;
713 visitor.SimulateInFramer(data, syn_frame->length() + SpdyFrame::size());
715 visitor.SimulateInFramer(data, send_frame->length() + SpdyFrame::size());
717 EXPECT_EQ(0, visitor.error_count_);
718 EXPECT_EQ(1, visitor.syn_frame_count_);
719 EXPECT_EQ(0, visitor.syn_reply_frame_count_);
720 EXPECT_EQ(0, visitor.headers_frame_count_);
721 EXPECT_EQ(arraysize(bytes), static_cast<unsigned>(visitor.data_bytes_));
722 EXPECT_EQ(0, visitor.fin_frame_count_);
723 EXPECT_EQ(0, visitor.fin_flag_count_);
724 EXPECT_EQ(1, visitor.zero_length_data_frame_count_);
727 EXPECT_EQ(0, visitor.framer_.num_stream_compressors());
728 EXPECT_EQ(0, visitor.framer_.num_stream_decompressors());
1334 TestSpdyVisitor visitor;
1335 visitor.SimulateInFramer(
1338 EXPECT_EQ(1, visitor.syn_frame_count_);