| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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:front_end/memory_file_system.dart'; | 7 import 'package:front_end/memory_file_system.dart'; |
| 8 import 'package:front_end/src/fasta/uri_translator_impl.dart'; | 8 import 'package:front_end/src/fasta/uri_translator_impl.dart'; |
| 9 import 'package:front_end/src/incremental/byte_store.dart'; | 9 import 'package:front_end/src/byte_store/byte_store.dart'; |
| 10 import 'package:front_end/src/incremental/file_state.dart'; | 10 import 'package:front_end/src/incremental/file_state.dart'; |
| 11 import 'package:package_config/packages.dart'; | 11 import 'package:package_config/packages.dart'; |
| 12 import 'package:test/test.dart'; | 12 import 'package:test/test.dart'; |
| 13 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 13 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 14 | 14 |
| 15 import 'mock_sdk.dart'; | 15 import 'mock_sdk.dart'; |
| 16 | 16 |
| 17 main() { | 17 main() { |
| 18 defineReflectiveSuite(() { | 18 defineReflectiveSuite(() { |
| 19 defineReflectiveTests(FileSystemStateTest); | 19 defineReflectiveTests(FileSystemStateTest); |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 } | 509 } |
| 510 | 510 |
| 511 Uri _writeFileDirectives(String path, | 511 Uri _writeFileDirectives(String path, |
| 512 {List<String> imports: const [], List<String> exports: const []}) { | 512 {List<String> imports: const [], List<String> exports: const []}) { |
| 513 return writeFile(path, ''' | 513 return writeFile(path, ''' |
| 514 ${imports.map((uri) => 'import "$uri";').join('\n')} | 514 ${imports.map((uri) => 'import "$uri";').join('\n')} |
| 515 ${exports.map((uri) => 'export "$uri";').join('\n')} | 515 ${exports.map((uri) => 'export "$uri";').join('\n')} |
| 516 '''); | 516 '''); |
| 517 } | 517 } |
| 518 } | 518 } |
| OLD | NEW |