#include "third_party/blink/renderer/modules/webtransport/incoming_stream.h"
#include <utility>
#include "base/test/mock_callback.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/iterable.h"
#include "third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_tester.h"
#include "third_party/blink/renderer/bindings/core/v8/script_value.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_dom_exception.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/streams/readable_stream.h"
#include "third_party/blink/renderer/core/streams/readable_stream_byob_reader.h"
#include "third_party/blink/renderer/core/streams/readable_stream_default_reader.h"
#include "third_party/blink/renderer/core/streams/stream_promise_resolver.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_typed_array.h"
#include "third_party/blink/renderer/modules/webtransport/web_transport_error.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "v8/include/v8.h"
namespace blink {
namespace {
ElementsAre;
StrictMock;
class IncomingStreamTest : public ::testing::Test { … };
TEST_F(IncomingStreamTest, Create) { … }
TEST_F(IncomingStreamTest, ReadArrayBuffer) { … }
TEST_F(IncomingStreamTest, ReadArrayBufferWithBYOBReader) { … }
TEST_F(IncomingStreamTest, ReadThenClosedWithFin) { … }
TEST_F(IncomingStreamTest, ReadThenClosedWithoutFin) { … }
TEST_F(IncomingStreamTest, ClosedWithFinThenRead) { … }
TEST_F(IncomingStreamTest, ClosedWithFinWithoutRead) { … }
TEST_F(IncomingStreamTest, DataPipeResetBeforeClosedWithFin) { … }
TEST_F(IncomingStreamTest, DataPipeResetBeforeClosedWithoutFin) { … }
TEST_F(IncomingStreamTest, WriteToPipeWithPendingRead) { … }
TEST_F(IncomingStreamTest, Cancel) { … }
TEST_F(IncomingStreamTest, CancelWithWebTransportError) { … }
TEST_F(IncomingStreamTest, CancelWithWebTransportErrorWithCode) { … }
}
}