Lines Matching refs:handshake
26 scoped_ptr<WebSocketHandshakeDraft75> handshake(
31 EXPECT_EQ(WebSocketHandshake::MODE_INCOMPLETE, handshake->mode());
33 handshake->CreateClientHandshakeMessage());
35 const char kResponse[] = "HTTP/1.1 101 Web Socket Protocol Handshake\r\n"
43 EXPECT_EQ(WebSocketHandshake::MODE_INCOMPLETE, handshake->mode());
45 EXPECT_EQ(-1, handshake->ReadServerHandshake(kResponse, 16));
46 EXPECT_EQ(WebSocketHandshake::MODE_INCOMPLETE, handshake->mode());
48 EXPECT_EQ(-1, handshake->ReadServerHandshake(
51 EXPECT_EQ(WebSocketHandshake::MODE_NORMAL, handshake->mode());
53 EXPECT_EQ(-1, handshake->ReadServerHandshake(
57 EXPECT_EQ(WebSocketHandshake::MODE_NORMAL, handshake->mode());
59 EXPECT_EQ(-1, handshake->ReadServerHandshake(
64 EXPECT_EQ(WebSocketHandshake::MODE_NORMAL, handshake->mode());
66 EXPECT_EQ(-1, handshake->ReadServerHandshake(
68 EXPECT_EQ(WebSocketHandshake::MODE_NORMAL, handshake->mode());
71 EXPECT_EQ(handshake_length, handshake->ReadServerHandshake(
73 EXPECT_EQ(WebSocketHandshake::MODE_CONNECTED, handshake->mode());
85 scoped_ptr<WebSocketHandshakeDraft75> handshake(
90 EXPECT_EQ(WebSocketHandshake::MODE_INCOMPLETE, handshake->mode());
92 handshake->CreateClientHandshakeMessage());
94 const char kResponse[] ="HTTP/1.1 101 Web Socket Protocol Handshake\r\n"
104 EXPECT_EQ(handshake_length, handshake->ReadServerHandshake(
106 EXPECT_EQ(WebSocketHandshake::MODE_CONNECTED, handshake->mode());
110 scoped_ptr<WebSocketHandshakeDraft75> handshake(
122 handshake->CreateClientHandshakeMessage());
126 scoped_ptr<WebSocketHandshakeDraft75> handshake(
132 EXPECT_THAT(handshake->CreateClientHandshakeMessage(),
137 scoped_ptr<WebSocketHandshakeDraft75> handshake(
143 EXPECT_THAT(handshake->CreateClientHandshakeMessage(),
145 EXPECT_THAT(handshake->CreateClientHandshakeMessage(),
150 scoped_ptr<WebSocketHandshakeDraft75> handshake(
156 EXPECT_THAT(handshake->CreateClientHandshakeMessage(),
161 scoped_ptr<WebSocketHandshakeDraft75> handshake(
167 EXPECT_THAT(handshake->CreateClientHandshakeMessage(),
173 scoped_ptr<WebSocketHandshakeDraft75> handshake(
179 EXPECT_THAT(handshake->CreateClientHandshakeMessage(),
185 scoped_ptr<WebSocketHandshakeDraft75> handshake(
191 EXPECT_THAT(handshake->CreateClientHandshakeMessage(),
196 scoped_ptr<WebSocketHandshakeDraft75> handshake(
202 EXPECT_THAT(handshake->CreateClientHandshakeMessage(),
207 scoped_ptr<WebSocketHandshakeDraft75> handshake(
213 EXPECT_THAT(handshake->CreateClientHandshakeMessage(),