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

Side by Side Diff: pkg/barback/test/utils.dart

Issue 243793005: Don't require Transformer methods to return Futures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library barback.test.utils; 5 library barback.test.utils;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection';
9 import 'dart:convert' show Encoding; 8 import 'dart:convert' show Encoding;
10 9
11 import 'package:barback/barback.dart'; 10 import 'package:barback/barback.dart';
12 import 'package:barback/src/cancelable_future.dart'; 11 import 'package:barback/src/cancelable_future.dart';
13 import 'package:barback/src/utils.dart'; 12 import 'package:barback/src/utils.dart';
14 import 'package:path/path.dart' as pathos; 13 import 'package:path/path.dart' as pathos;
15 import 'package:scheduled_test/scheduled_test.dart'; 14 import 'package:scheduled_test/scheduled_test.dart';
16 import 'package:stack_trace/stack_trace.dart'; 15 import 'package:stack_trace/stack_trace.dart';
17 import 'package:unittest/compact_vm_config.dart'; 16 import 'package:unittest/compact_vm_config.dart';
18 17
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 579
581 _MockAsset(this.id, this.contents); 580 _MockAsset(this.id, this.contents);
582 581
583 Future<String> readAsString({Encoding encoding}) => 582 Future<String> readAsString({Encoding encoding}) =>
584 new Future.value(contents); 583 new Future.value(contents);
585 584
586 Stream<List<int>> read() => throw new UnimplementedError(); 585 Stream<List<int>> read() => throw new UnimplementedError();
587 586
588 String toString() => "MockAsset $id $contents"; 587 String toString() => "MockAsset $id $contents";
589 } 588 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698