Lines Matching defs:protocol
40 const char kProtocolTestServerURL[] = "protocol-test?protocol=";
302 const std::string& protocol) {
310 if (protocol.size()) {
311 protocols[0] = CreateVarString(protocol);
318 if (protocol.size())
370 PP_Var protocol = websocket_interface_->GetProtocol(ws);
371 ASSERT_TRUE(AreEqualWithString(protocol, std::string()));
372 ReleaseVar(protocol);
718 PP_Var protocol = websocket_interface_->GetProtocol(ws);
719 ASSERT_TRUE(AreEqualWithString(protocol, expected_protocols[i]));
721 ReleaseVar(protocol);
1286 // Protocol arguments are valid, but this test run without a WebSocket
1438 const std::string protocol("x-chat");
1439 const pp::Var protocols[] = { pp::Var(protocol) };
1441 url += protocol;
1447 websocket.GetProtocol().pp_var(), protocol.c_str()));
1449 // The server to which this test connect returns the decided protocol as a
1455 ASSERT_TRUE(AreEqualWithString(events[1].var.pp_var(), protocol.c_str()));