Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1659)

Unified Diff: test/mime_multipart_transformer_test.dart

Issue 1318773002: pkg/mime: cleanup unused members in test (Closed) Base URL: https://github.com/dart-lang/mime.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mime_multipart_transformer_test.dart
diff --git a/test/mime_multipart_transformer_test.dart b/test/mime_multipart_transformer_test.dart
index d5b642fdf184c80fd341f13d0596a0f39f9a95f7..de1dc6dec559b004de97e5b16b8e6122932ce5fe 100644
--- a/test/mime_multipart_transformer_test.dart
+++ b/test/mime_multipart_transformer_test.dart
@@ -12,12 +12,10 @@ void _writeInChunks(
List<int> data, int chunkSize, StreamController<List<int>> controller) {
if (chunkSize == -1) chunkSize = data.length;
- int written = 0;
for (int pos = 0; pos < data.length; pos += chunkSize) {
int remaining = data.length - pos;
int writeLength = min(chunkSize, remaining);
controller.add(data.sublist(pos, pos + writeLength));
- written += writeLength;
}
controller.close();
}
@@ -98,8 +96,7 @@ void _runParseTest(String message, String boundary, TestMode mode,
var stream =
controller.stream.transform(new MimeMultipartTransformer(boundary));
- var subscription;
- subscription = stream.first.then((multipart) {
+ stream.first.then((multipart) {
if (expectedHeaders != null) {
expect(multipart.headers, equals(expectedHeaders[0]));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698