#include "third_party/blink/renderer/core/streams/transferable_streams.h"
#include "base/types/strong_alias.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/script_function.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/core/v8/script_value.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_readable_stream_default_reader.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_writable_stream_default_writer.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/messaging/message_channel.h"
#include "third_party/blink/renderer/core/streams/readable_stream.h"
#include "third_party/blink/renderer/core/streams/readable_stream_default_controller_with_script_scope.h"
#include "third_party/blink/renderer/core/streams/readable_stream_default_reader.h"
#include "third_party/blink/renderer/core/streams/readable_stream_transferring_optimizer.h"
#include "third_party/blink/renderer/core/streams/underlying_source_base.h"
#include "third_party/blink/renderer/core/streams/writable_stream.h"
#include "third_party/blink/renderer/core/streams/writable_stream_default_writer.h"
#include "third_party/blink/renderer/core/streams/writable_stream_transferring_optimizer.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/v8_throw_exception.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 "v8/include/v8.h"
namespace blink {
namespace {
enum class SourceType { … };
class TestUnderlyingSource final : public UnderlyingSourceBase { … };
void ExpectValue(int line,
ScriptState* script_state,
v8::Local<v8::Value> result,
int32_t expectation) { … }
void ExpectDone(int line,
ScriptState* script_state,
v8::Local<v8::Value> result) { … }
TEST(TransferableStreamsTest, SmokeTest) { … }
TEST(ConcatenatedReadableStreamTest, Empty) { … }
TEST(ConcatenatedReadableStreamTest, SuccessfulRead) { … }
TEST(ConcatenatedReadableStreamTest, SuccessfulReadForPushSources) { … }
TEST(ConcatenatedReadableStreamTest, ErrorInSource1) { … }
TEST(ConcatenatedReadableStreamTest, ErrorInSource2) { … }
TEST(ConcatenatedReadableStreamTest, Cancel1) { … }
TEST(ConcatenatedReadableStreamTest, Cancel2) { … }
TEST(ConcatenatedReadableStreamTest, PendingStart1) { … }
TEST(ConcatenatedReadableStreamTest, PendingStart2) { … }
}
}