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

Unified Diff: pkg/analyzer/test/resource_utils.dart

Issue 2132073003: Validate cache consistency asynchronously. Compute modification times of physical files in a separa… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/resource_utils.dart
diff --git a/pkg/analyzer/test/resource_utils.dart b/pkg/analyzer/test/resource_utils.dart
index 5936144f19d2d9e9a9147b1b3977ae431e7c2ae2..65f7069d4914ae37207645620429255872daba08 100644
--- a/pkg/analyzer/test/resource_utils.dart
+++ b/pkg/analyzer/test/resource_utils.dart
@@ -4,10 +4,12 @@
library analyzer.test.resource_utils;
+import 'dart:async';
import 'dart:core' hide Resource;
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/file_system/memory_file_system.dart';
+import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/src/util/absolute_path.dart';
import 'package:path/path.dart' as path;
import 'package:unittest/unittest.dart';
@@ -104,6 +106,11 @@ class TestResourceProvider implements ResourceProvider {
Folder getFolder(String path) => _provider.getFolder(_assertPath(path));
@override
+ Future<List<int>> getModificationTimes(List<Source> sources) async {
+ return sources.map((source) => 0).toList();
+ }
+
+ @override
Resource getResource(String path) => _provider.getResource(_assertPath(path));
@override

Powered by Google App Engine
This is Rietveld 408576698