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

Unified Diff: test/percent_test.dart

Issue 1912273003: Make the package strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/convert.git@master
Patch Set: Code review changes Created 4 years, 8 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 | « test/hex_test.dart ('k') | test/string_accumulator_sink_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/percent_test.dart
diff --git a/test/percent_test.dart b/test/percent_test.dart
index f7a1c48922607500077123a628ed6d79dd12232e..7a1daca4301807f813cb276f0fd49860a0159862 100644
--- a/test/percent_test.dart
+++ b/test/percent_test.dart
@@ -37,8 +37,8 @@ void main() {
group("with chunked conversion", () {
test("percent-encodes byte arrays", () {
- var results = [];
- var controller = new StreamController(sync: true);
+ var results = <String>[];
+ var controller = new StreamController<String>(sync: true);
controller.stream.listen(results.add);
var sink = percent.encoder.startChunkedConversion(controller.sink);
@@ -50,8 +50,8 @@ void main() {
});
test("handles empty and single-byte lists", () {
- var results = [];
- var controller = new StreamController(sync: true);
+ var results = <String>[];
+ var controller = new StreamController<String>(sync: true);
controller.stream.listen(results.add);
var sink = percent.encoder.startChunkedConversion(controller.sink);
@@ -98,11 +98,11 @@ void main() {
});
group("with chunked conversion", () {
- var results;
+ List<List<int>> results;
var sink;
setUp(() {
results = [];
- var controller = new StreamController(sync: true);
+ var controller = new StreamController<List<int>>(sync: true);
controller.stream.listen(results.add);
sink = percent.decoder.startChunkedConversion(controller.sink);
});
« no previous file with comments | « test/hex_test.dart ('k') | test/string_accumulator_sink_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698