blob: 6c112764f0c689c8f1ac64b2df5ccb747fbc31cf [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// @assertion void add(T chunk)
/// Adds chunked data to this sink.
///
/// This method is also used when converters are used as StreamTransformers.
/// @description Checks that this method adds data to the [ByteConversionSink]
/// @Issue 29329 (see ChankedConversionSink/close_A01_t01)
/// @author sgrekhov@unipro.ru
import "dart:convert";
import "allTests.lib.dart" as all_tests;
ChunkedConversionSink create(ChunkedConversionSink<List<int>> outSink) {
StringConversionSink inSink = utf8.encoder.startChunkedConversion(outSink);
return utf8.decoder.startChunkedConversion(inSink);
}
main() {
all_tests.test(create);
}