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

Side by Side Diff: pkg/front_end/test/src/incremental/file_state_test.dart

Issue 2990323002: Move byte_store.dart and file_byte_store.dart to their own subdirectory. (Closed)
Patch Set: Created 3 years, 4 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 (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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698