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

Side by Side Diff: test/typed_wrapper/stream_subscription_test.dart

Issue 2161283002: Fix Dart 1.17 strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « test/typed_wrapper/future_test.dart ('k') | test/typed_wrapper/stream_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 6
7 import "package:async/async.dart";
8 import "package:async/src/typed/stream_subscription.dart"; 7 import "package:async/src/typed/stream_subscription.dart";
9 import "package:test/test.dart"; 8 import "package:test/test.dart";
10 9
11 import '../utils.dart'; 10 import '../utils.dart';
12 11
13 void main() { 12 void main() {
14 group("with valid types, forwards", () { 13 group("with valid types, forwards", () {
15 var controller; 14 var controller;
16 var wrapper; 15 var wrapper;
17 var isCanceled; 16 var isCanceled;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 }); 134 });
136 135
137 test("asFuture()", () { 136 test("asFuture()", () {
138 expect(wrapper.asFuture(12), completion(equals(12))); 137 expect(wrapper.asFuture(12), completion(equals(12)));
139 controller.add("foo"); 138 controller.add("foo");
140 controller.close(); 139 controller.close();
141 }); 140 });
142 }); 141 });
143 }); 142 });
144 } 143 }
OLDNEW
« no previous file with comments | « test/typed_wrapper/future_test.dart ('k') | test/typed_wrapper/stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698