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

Side by Side Diff: packages/quiver/test/async/all_tests.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
1 // Copyright 2013 Google Inc. All Rights Reserved. 1 // Copyright 2013 Google Inc. All Rights Reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and 12 // See the License for the specific language governing permissions and
13 // limitations under the License. 13 // limitations under the License.
14 14
15 /** 15 library quiver.async.all_tests;
16 * Simple code with broad use cases.
17 */
18 library quiver.core;
19 16
20 part 'src/core/hash.dart'; 17 import 'countdown_timer_test.dart' as countdown_timer;
21 part 'src/core/optional.dart'; 18 import 'create_timer_test.dart' as create_timer;
19 import 'future_group_test.dart' as future_group;
20 import 'future_stream_test.dart' as future_stream;
21 import 'iteration_test.dart' as iteration;
22 import 'metronome_test.dart' as metronome;
23 import 'stream_router_test.dart' as stream_router;
22 24
23 /** 25 main() {
24 * Returns the first non-null argument. If all arguments are null, throws 26 countdown_timer.main();
25 * an [ArgumentError]. 27 create_timer.main();
26 * 28 future_group.main();
27 * Note: if [o1] is an [Optional], this can be accomplished with `o1.or(o2)`. 29 future_stream.main();
28 */ 30 metronome.main();
29 firstNonNull(o1, o2, [o3, o4]) { 31 iteration.main();
30 if (o1 != null) return o1; 32 stream_router.main();
31 if (o2 != null) return o2;
32 if (o3 != null) return o3;
33 if (o4 != null) return o4;
34 throw new ArgumentError('All arguments were null');
35 } 33 }
OLDNEW
« no previous file with comments | « packages/quiver/test/all_tests.dart ('k') | packages/quiver/test/async/countdown_timer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698