#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 = …;
class StubWebTransport final : public network::mojom::blink::WebTransport { … };
class ScopedWebTransport final { … };
class ScopedDatagramDuplexStream final { … };
TEST(DatagramDuplexStreamTest, Defaults) { … }
TEST(DatagramDuplexStreamTest, SetIncomingMaxAge) { … }
TEST(DatagramDuplexStreamTest, SetOutgoingMaxAge) { … }
TEST(DatagramDuplexStreamTest, SetIncomingHighWaterMark) { … }
TEST(DatagramDuplexStreamTest, SetOutgoingHighWaterMark) { … }
TEST(DatagramDuplexStreamTest, InitialMaxDatagramSize) { … }
}
}