chromium/third_party/blink/renderer/modules/webtransport/datagram_duplex_stream_test.cc

// Copyright 2021 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/webtransport/datagram_duplex_stream.h"

#include <memory>
#include <utility>

#include "base/functional/callback.h"
#include "base/time/time.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "services/network/public/mojom/web_transport.mojom-blink.h"
#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/modules/webtransport/test_utils.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"

namespace blink {

namespace {

constexpr int32_t kInitialOutgoingHighWaterMark =;

// Tiny implementation of network::mojom::blink::WebTransport with only the
// functionality needed for these tests.
class StubWebTransport final : public network::mojom::blink::WebTransport {};

// This class sets up a connected blink::WebTransport object using a
// StubWebTransport and provides access to both.
class ScopedWebTransport final {};

class ScopedDatagramDuplexStream final {};

TEST(DatagramDuplexStreamTest, Defaults) {}

TEST(DatagramDuplexStreamTest, SetIncomingMaxAge) {}

TEST(DatagramDuplexStreamTest, SetOutgoingMaxAge) {}

TEST(DatagramDuplexStreamTest, SetIncomingHighWaterMark) {}

TEST(DatagramDuplexStreamTest, SetOutgoingHighWaterMark) {}

TEST(DatagramDuplexStreamTest, InitialMaxDatagramSize) {}

}  // namespace

}  // namespace blink