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

Unified Diff: pkg/analyzer/test/file_system/physical_resource_provider_test.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/file_system/physical_resource_provider_test.dart
diff --git a/pkg/analyzer/test/file_system/physical_resource_provider_test.dart b/pkg/analyzer/test/file_system/physical_resource_provider_test.dart
index 790eff7dcb11780f363573dc6ae0ee411bbe7c3f..939882283488e8295bb92ee53d7d47e09b347645 100644
--- a/pkg/analyzer/test/file_system/physical_resource_provider_test.dart
+++ b/pkg/analyzer/test/file_system/physical_resource_provider_test.dart
@@ -377,6 +377,15 @@ class FolderTest extends _BaseTest {
@reflectiveTest
class PhysicalResourceProviderTest extends _BaseTest {
+ test_getModificationTimes() async {
+ PhysicalResourceProvider provider = PhysicalResourceProvider.INSTANCE;
+ String path = join(tempPath, 'file1.txt');
+ new io.File(path).writeAsStringSync('');
+ Source source = provider.getFile(path).createSource();
+ List<int> times = await provider.getModificationTimes([source]);
+ expect(times, [source.modificationStamp]);
+ }
+
void test_getStateLocation_uniqueness() {
PhysicalResourceProvider provider = PhysicalResourceProvider.INSTANCE;
String idOne = 'one';

Powered by Google App Engine
This is Rietveld 408576698