Home | History | Annotate | Download | only in websockets

Lines Matching full:frames

47   std::vector<WebSocketFrameHandler::FrameInfo> frames;
54 kInputData, kInputDataLen, &frames));
55 EXPECT_EQ(2UL, frames.size());
57 EXPECT_EQ(kInputData, frames[0].frame_start);
58 EXPECT_EQ(kHelloWorldFrameLen, frames[0].frame_length);
59 EXPECT_EQ(kInputData + 1, frames[0].message_start);
60 EXPECT_EQ(kHelloWorldFrameLen - 2, frames[0].message_length);
62 EXPECT_EQ(kInputData + kHelloWorldFrameLen, frames[1].frame_start);
63 EXPECT_EQ(2, frames[1].frame_length);
64 EXPECT_EQ(0, frames[1].message_length);
68 std::vector<WebSocketFrameHandler::FrameInfo> frames;
84 inputData, kInputDataLen, &frames));
85 ASSERT_EQ(3UL, frames.size());
87 EXPECT_EQ(inputData, frames[0].frame_start);
88 EXPECT_EQ(kHelloWorldFrameLen, frames[0].frame_length);
89 EXPECT_EQ(inputData + 1, frames[0].message_start);
90 EXPECT_EQ(kHelloWorldFrameLen - 2, frames[0].message_length);
92 EXPECT_EQ(inputData + kHelloWorldFrameLen, frames[1].frame_start);
93 EXPECT_EQ(kLengthFrameLen, frames[1].frame_length);
94 EXPECT_EQ(inputData + kHelloWorldFrameLen + 3, frames[1].message_start);
95 EXPECT_EQ(kLengthFrameLen - 3, frames[1].message_length);
98 frames[2].frame_start);
99 EXPECT_EQ(kHelloWorldFrameLen, frames[2].frame_length);
101 frames[2].message_start);
102 EXPECT_EQ(kHelloWorldFrameLen - 2, frames[2].message_length);
106 std::vector<WebSocketFrameHandler::FrameInfo> frames;
116 kInputData, kInputDataLen, &frames));
117 ASSERT_EQ(1UL, frames.size());
119 EXPECT_EQ(kInputData, frames[0].frame_start);
120 EXPECT_EQ(kHelloWorldFrameLen, frames[0].frame_length);
121 EXPECT_EQ(kInputData + 1, frames[0].message_start);
122 EXPECT_EQ(kHelloWorldFrameLen - 2, frames[0].message_length);