chromium/third_party/blink/renderer/modules/websockets/websocket_error_test.cc

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

#include "third_party/blink/renderer/modules/websockets/websocket_error.h"

#include <optional>

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_websocket_close_info.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_websocket_error.h"
#include "third_party/blink/renderer/modules/websockets/websocket_channel.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
#include "third_party/googletest/src/googletest/include/gtest/gtest.h"

namespace blink {

namespace {

class WebSocketErrorTest : public ::testing::Test {};

TEST_F(WebSocketErrorTest, DefaultConstruct) {}

TEST_F(WebSocketErrorTest, ConstructWithMessage) {}

TEST_F(WebSocketErrorTest, ConstructWithCloseCode) {}

TEST_F(WebSocketErrorTest, ConstructWithReason) {}

TEST_F(WebSocketErrorTest, ConstructWithEmptyReason) {}

TEST_F(WebSocketErrorTest, ConstructWithInvalidCloseCode) {}

TEST_F(WebSocketErrorTest, ConstructWithOverlongReason) {}

TEST_F(WebSocketErrorTest, InternalCreate) {}

}  // namespace

}  // namespace blink