src/net/websockets/websocket_handshake_challenge_test.cc
TEST(WebSocketHandshakeChallengeTest, RFC6455) {
  const std::string key = "dGhlIHNhbXBsZSBub25jZQ==";
  std::string accept = ComputeSecWebSocketAccept(key);
  EXPECT_EQ("s3pPLMBiTxaQ9kYGzzhZRbK+xOo=", accept);
}
// Test the example challenge from the RFC6455.
Test the example challenge from the RFC6455.
Test the example challenge from the RFC6455 .
TEST(WebSocketHandshakeChallengeTest, RFC6455) {
  const std::string key = "dGhlIHNhbXBsZSBub25jZQ==";
  std::string accept = ComputeSecWebSocketAccept(key);
  EXPECT_EQ("s3pPLMBiTxaQ9kYGzzhZRbK+xOo=", accept);
}
TEST ( WebSocketHandshakeChallengeTest , RFC6455 ) { const std :: string key = " " ; std :: string accept = ComputeSecWebSocketAccept ( key ) ; EXPECT_EQ ( " " , accept ) ; }
Test the example challenge from the RFC6455.
Test the example challenge from the RFC6455 .