| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 test.source.caching_pub_package_map_provider; | 5 library test.source.caching_pub_package_map_provider; |
| 6 | 6 |
| 7 import 'dart:convert'; | 7 import 'dart:convert'; |
| 8 import 'dart:core' hide Resource; |
| 8 import 'dart:io' as io; | 9 import 'dart:io' as io; |
| 9 | 10 |
| 10 import 'package:analysis_server/src/source/caching_pub_package_map_provider.dart
'; | 11 import 'package:analysis_server/src/source/caching_pub_package_map_provider.dart
'; |
| 11 import 'package:analyzer/file_system/file_system.dart'; | 12 import 'package:analyzer/file_system/file_system.dart'; |
| 12 import 'package:analyzer/file_system/memory_file_system.dart'; | 13 import 'package:analyzer/file_system/memory_file_system.dart'; |
| 13 import 'package:analyzer/source/package_map_provider.dart'; | 14 import 'package:analyzer/source/package_map_provider.dart'; |
| 14 import 'package:analyzer/src/generated/engine.dart'; | 15 import 'package:analyzer/src/generated/engine.dart'; |
| 15 import 'package:analyzer/src/generated/sdk_io.dart'; | 16 import 'package:analyzer/src/generated/sdk_io.dart'; |
| 16 import 'package:unittest/unittest.dart'; | 17 import 'package:unittest/unittest.dart'; |
| 17 | 18 |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 provider.newFolder(path); | 386 provider.newFolder(path); |
| 386 } | 387 } |
| 387 int fileCount = _filePaths.length; | 388 int fileCount = _filePaths.length; |
| 388 for (int fileIndex = 0; fileIndex < fileCount; ++fileIndex) { | 389 for (int fileIndex = 0; fileIndex < fileCount; ++fileIndex) { |
| 389 String path = _filePaths[fileIndex]; | 390 String path = _filePaths[fileIndex]; |
| 390 TimestampedData content = _fileContents[fileIndex]; | 391 TimestampedData content = _fileContents[fileIndex]; |
| 391 provider.newFile(path, content.data, content.modificationTime); | 392 provider.newFile(path, content.data, content.modificationTime); |
| 392 } | 393 } |
| 393 } | 394 } |
| 394 } | 395 } |
| OLD | NEW |