chromium/chrome/test/chromedriver/net/websocket_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/test/chromedriver/net/websocket.h"

#include <stddef.h>

#include <memory>
#include <string>
#include <vector>

#include "base/base64.h"
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "base/time/time.h"
#include "chrome/test/chromedriver/net/test_http_server.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace {

void OnConnectFinished(base::RunLoop* run_loop, int* save_error, int error) {}

class Listener : public WebSocketListener {};

class CloseListener : public WebSocketListener {};

class MessageReceivedListener : public WebSocketListener {};

class WebSocketTest : public testing::Test {};

}  // namespace

TEST_F(WebSocketTest, CreateDestroy) {}

TEST_F(WebSocketTest, Connect) {}

TEST_F(WebSocketTest, ConnectNoServer) {}

TEST_F(WebSocketTest, Connect404) {}

TEST_F(WebSocketTest, ConnectServerClosesConn) {}

TEST_F(WebSocketTest, CloseOnReceive) {}

TEST_F(WebSocketTest, CloseOnSend) {}

TEST_F(WebSocketTest, SendReceive) {}

TEST_F(WebSocketTest, SendReceiveLarge) {}

TEST_F(WebSocketTest, SendReceiveManyPacks) {}

TEST_F(WebSocketTest, SendReceiveMultiple) {}

TEST_F(WebSocketTest, VerifyTextFramelsProcessed) {}

TEST_F(WebSocketTest, VerifyBinaryFramelsNotProcessed) {}

TEST_F(WebSocketTest, VerifyCloseFramelsNotProcessed) {}